2
A
回答
2
具有驱动器号和相对路径的路径相对于该驱动器号的当前目录被解析。
Windows和MS-DOS系统分别跟踪每个驱动器号的当前目录。
例如:
G:\>dir c:
Volume in drive C is System
Volume Serial Number is A09A-AD9C
Directory of C:\
06/12/2008 02:44 PM 0 AUTOEXEC.BAT
06/12/2008 02:44 PM 0 CONFIG.SYS
08/25/2008 02:22 PM <DIR> Documents and Settings
12/09/2009 12:45 PM <DIR> Program Files
[snip]
G:\>cd "c:\Program Files"
G:\>dir c:
Volume in drive C is System
Volume Serial Number is A09A-AD9C
Directory of C:\Program Files
12/09/2009 12:45 PM <DIR> .
12/09/2009 12:45 PM <DIR> ..
05/14/2010 11:38 AM <DIR> 7-Zip
12/13/2010 01:49 AM <DIR> Adobe
[snip]
G:\>dir c:Adobe
Volume in drive C is System
Volume Serial Number is A09A-AD9C
Directory of C:\Program Files\Adobe
12/13/2010 01:49 AM <DIR> .
12/13/2010 01:49 AM <DIR> ..
01/25/2010 01:45 AM <DIR> Reader 8.0
12/13/2010 01:49 AM <DIR> Reader 9.0
路径c:Adobe
成为相同C:\Program Files\Adobe
,因为这是为C驱动器的当前目录中,即使当前的驱动器实际上是G盘。
相关问题
- 1. 为什么我的Ruby路径上没有当前目录?
- 2. 当EditText有空时会发生什么?
- 3. 当没有添加目录或文件时,grep会做什么
- 4. 当没有任何事情发生时,Akka会做什么?
- 5. 当没有wsarecv时,输入数据会发生什么
- 6. 当gwt.xml中没有<source>标签时会发生什么?
- 7. 当没有找到jQuery选择器时会发生什么?
- 8. 当按谷歌登录按钮时什么也没有发生
- 9. 在eclipse或intellij中添加类路径时会发生什么?
- 10. 当你为linux内核编写一个路径时会发生什么
- 11. Python ZipFile路径分隔符
- 12. grep的路径分隔符
- 13. EhCache:为什么我的diskStore路径目录没有创建?
- 14. 当localStorage已满时会发生什么?
- 15. 当redis重载时会发生什么?
- 16. 当我ping 127.0.0.1时会发生什么
- 17. 当FlatFileFooterCallback出错时会发生什么?
- 18. 当AsyncTasks已满时会发生什么?
- 19. 当crontabs重叠时会发生什么?
- 20. 当VRAM已满时会发生什么?
- 21. 当我编译时会发生什么?
- 22. 当发生异常时记录什么
- 23. 当我复制两个空路径时会发生什么,为什么它不会抛出异常?
- 24. 当我将字符串分配给字符时会发生什么?
- 25. 当发生javascript运行时错误时会发生什么?
- 26. 当程序运行时发生事件时会发生什么
- 27. 目录路径上的eval是什么?
- 28. 关于目录路径,你叫什么“..”?
- 29. 什么是crontab目录路径?
- 30. 当我在eclipse中清理项目时会发生什么?
与程序 – 2010-09-29 09:28:06
中的'\\'相同您的意思是它的ascii值与'\\'相同,只有在表示时才有所不同? – wamp 2010-09-29 09:34:08