编写 VBScript 脚本后台运行 Windows 终端命令
创建 start.vbs
文件,添加以下内容
Dim WinScriptHost
Set WinScriptHost = CreateObject("WScript.Shell")
WinScriptHost.Run Chr(34) & "D:\Documents\mybat.bat" & Chr(34), 0
Set WinScriptHost = Nothing
双击运行或设置开机自动运行。
参考:
创建 start.vbs
文件,添加以下内容
Dim WinScriptHost
Set WinScriptHost = CreateObject("WScript.Shell")
WinScriptHost.Run Chr(34) & "D:\Documents\mybat.bat" & Chr(34), 0
Set WinScriptHost = Nothing
双击运行或设置开机自动运行。
参考: