How can I hide ms-dos window when running a .bat file?

后端 未结 4 1415
感情败类
感情败类 2021-01-18 07:48

I am running a .bat file for my script (Scheduled Tak (CronJob)) per minute. When it runs, windows command prompt appears for a fiction of time.

My batch code like

4条回答
  •  清酒与你
    2021-01-18 08:29

    Use a VBScript

    Set objShell = WScript.CreateObject("WScript.Shell")
    objShell.Run("C:\yourbatch.bat"), 0, True
    

    Run that which will run your batch file hidden.

提交回复
热议问题