美文网首页
windows在后台执行命令行程序

windows在后台执行命令行程序

作者: 小凶许不松 | 来源:发表于2018-12-20 17:38 被阅读0次

    You could run it silently using a Windows Script file instead. The Run Method allows you running a script in invisible mode. Create a .vbs file like this one

    Dim WinScriptHost
    Set WinScriptHost = CreateObject("WScript.Shell")
    WinScriptHost.Run Chr(34) & "C:\Scheduled Jobs\mybat.bat" & Chr(34), 0
    Set WinScriptHost = Nothing
    and schedule it. The second argument in this example sets the window style. 0 means "hide the window."

    相关文章

      网友评论

          本文标题:windows在后台执行命令行程序

          本文链接:https://www.haomeiwen.com/subject/iwcukqtx.html