簡單好玩的編程代碼 如何用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" "要發(fā)送的字符,請自己更改strProgram = "c:windowssystem32notepad.exe" "需要打開的程序,請自己指定With objShell .Run strProgram WScript.Sleep 500 .SendKeys strKeys .SendKeys "~"End WithSet objShell = Nothing