Cmd /s:on /c d: & cd abc & ...
请问除了这个麻烦的方法外,
有没有简单一些的?
答案见7楼:)
[ Last edited by sonicandy on 2008-1-25 at 10:01 PM ]
请问除了这个麻烦的方法外,
有没有简单一些的?
答案见7楼:)
[ Last edited by sonicandy on 2008-1-25 at 10:01 PM ]
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
set shell = createobject("wscript.shell")
shell.run("cmd /c cd \")
shell.run("cmd /c echo %cd% & pause")BatPath=left(Wscript.ScriptFullName,len(Wscript.ScriptFullName)-len(Wscript.ScriptName))
Set Shell=WScript.CreateObject("WScript.Shell")
Shell.run ("%Comspec% /k "&"cd "& Chr(34) & BatPath & Chr(34))BatPath=left(Wscript.ScriptFullName,len(Wscript.ScriptFullName)-len(Wscript.ScriptName))
Set Shell=WScript.CreateObject("WScript.Shell")
Shell.run ("%Comspec% /c "&"cd "& Chr(34) & BatPath & Chr(34))set r=createobject("wscript.shell")
r.currentdirectory="c:\"
r.run "boot.ini"