|
| » 首页 » 电脑_数码 » 编程 » VBS如何执行带\"\"的cmd命令 |
VBS如何执行带\"\"的cmd命令 |
|
set ws=wscript.Createobject("wscript.shell") ws.run "cmd /c copy test.txt "c:\Documents and Settings"",0 |
![]() |
|
|
将里面的改成单引号就可以了 set ws=wscript.Createobject("wscript.shell") ws.run "cmd /c copy test.txt 'c:\Documents and Settings'",0 run "cmd /c copy test.txt ""c:\Documents and Settings""",0 set ws=wscript.Createobject("wscript.shell") ws.run chr(34) $ "cmd /c copy test.txt c:\Documents and Settings"&chr(34),0 |
| 《VBS如何执行带\"\"的cmd命令》答案收集时间:2008-06-14 14:47:19 |