在 批处理 里
"如果没有发现 QQ.exe 这个进程,那么就执行 QQ.exe 程序,这样写
cmd /c ping -n 1 localhost>nul & tasklist | findstr /i "QQ.exe">nul || start D:\Progra~1\Tencent\QQ.exe
我现在想将他写进 vbs 里来调动运行,为什么 会说 "语句未结束??"
Set ws = CreateObject("Wscript.Shell")
ws.run "cmd /c ping -n 1 localhost>nul & tasklist | findstr /i "QQ.exe">nul || start D:\Progra~1\Tencent\QQ.exe"
[ Last edited by huzixuan on 2007-4-7 at 11:59 PM ]
"如果没有发现 QQ.exe 这个进程,那么就执行 QQ.exe 程序,这样写
cmd /c ping -n 1 localhost>nul & tasklist | findstr /i "QQ.exe">nul || start D:\Progra~1\Tencent\QQ.exe
我现在想将他写进 vbs 里来调动运行,为什么 会说 "语句未结束??"
Set ws = CreateObject("Wscript.Shell")
ws.run "cmd /c ping -n 1 localhost>nul & tasklist | findstr /i "QQ.exe">nul || start D:\Progra~1\Tencent\QQ.exe"
[ Last edited by huzixuan on 2007-4-7 at 11:59 PM ]
江湖远
碧空长
路茫茫
一个人漫无目的的奔跑,风,刺骨的冷....
碧空长
路茫茫
一个人漫无目的的奔跑,风,刺骨的冷....
