下面的代码可以运行命令行命令:
DIM objShell set objShell = wscript.createObject("wscript.shell") iReturn = objShell.Run("%COMSPEC%/K Dir c:\Windows\system32", 1, TRUE)
这里%comspec%是命令行的启动命令,在通常的W2K中通常是cmd.exe