Windows设置一个程序或者bat文件在后台运行(无窗口运行)
程序员文章站
2022-03-02 22:29:26
...
1.新建一个.vbs文件,内容如下
Dim WinScriptHost
Set WinScriptHost = CreateObject("WScript.Shell")
WinScriptHost.Run Chr(34) & "D:\Other\minecraft-pe\bedrock_server.exe" & Chr(34), 0
Set WinScriptHost = Nothing
2.双击运行该文件,程序已经在后台运行