简单好玩的编程代码 如何用VBS打开一个程序?

如何用VBS打开一个程序?Option Explicit Dim objShell, strProgram, strKeysSet objShell = CreateObject("Wscript.S

如何用VBS打开一个程序?

Option Explicit Dim objShell, strProgram, strKeysSet objShell = CreateObject("Wscript.Shell")strKeys = "Hello world" "要发送的字符,请自己更改strProgram = "c:windowssystem32notepad.exe" "需要打开的程序,请自己指定With objShell .Run strProgram WScript.Sleep 500 .SendKeys strKeys .SendKeys "~"End WithSet objShell = Nothing