
| Quote: | |
|
CODE: [Copy to clipboard]另外,还可以用 cd 、dir 等命令来判断。个人觉得用 if exist "d:\hello world\." 此方式为最好。if exist "e:\hello world\" echo 存在
if exist "d:\hello world\." echo 存在
if exist d:\good\. echo 存在
if exist d:\good\nul echo 存在
if exist d:\hellow~1\. echo 存在
if exist d:\hellow~1\nul echo 存在
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |