
CODE: [Copy to clipboard][ Last edited by jiafei2427 on 2009-12-16 at 17:08 ]如果用if exist 来判断 含有环境变量的路径呢?
如:
set ver= %userprofile%
if exist “%ver%\123.txt" del "%ver%\123.txt"
其中%ver%不被扩展
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |