Can I run dos command in VBscript ?

2006-12-22 5:43 pm
Can I run dos command in VBscript ?

回答 (1)

2006-12-23 1:39 am
✔ 最佳答案
set wshell = CreateObject("WScript.Shell")
wshell.run "c:\file.bat"
set wshell = nothing

但必須在 Server 上執行 Windows Script Host Service 才可使用.


收錄日期: 2021-04-23 19:17:23
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20061222000051KK00600

檢視 Wayback Machine 備份