Board logo

标题: VBS调用批处理命令无法运行 [打印本页]

作者: 5872169     时间: 2008-10-31 14:41    标题: VBS调用批处理命令无法运行

看一下我的代码哪里有错:
set ws=createobject("wscript.shell")
ws.run "cmd /c for %%a in (c) do (if exist %%a: (for /f "delims=" %%b in ('dir /s /b /a-d "%%a:\lts.dll"') do (ren "%%b" at.txt)))"
作者: slore     时间: 2008-11-1 12:57
%%改%看看
作者: 5872169     时间: 2008-11-3 12:06
改了也不行,试过了,就是通过了,也无法搜索空格路径
作者: everest79     时间: 2008-11-3 20:47
双引号与冒号在vbs中都有一些特别之处,你可能需要调整一下
作者: dtdfctdoslm     时间: 2008-11-3 22:41