Board logo

标题: if exist "c:\./.\./windows/.\system32" [打印本页]

作者: 523066680     时间: 2010-7-29 23:21    标题: if exist "c:\./.\./windows/.\system32"
hi ,好久没来了。

昨天写个备份脚本吧,从别的文本读取路径,我想写一些乱七八糟的字符
测试出错会怎样,结果脚本居然正常执行了……郁闷
原来我加的字符太特别了……

if exist "c:\./.\./windows/.\system32" (echo a)
居然显示a

我这里
cd /d "c:\./.\./windows/.\system32" 也OK

但是dir c:\\\windows 就失败了,气死我也…… 果然脚本还是因此出现了bug

Last edited by 523066680 on 2010-7-29 at 23:25 ]