How to start a batch file minimized with task scheduler in Windows 8? - %comspec% method not working anymore after Windows 7

前端 未结 6 1549
再見小時候
再見小時候 2021-02-01 14:45

After Windows XP, I always use the trick below to start batch files minimized with Windows Task Manager.

From http://www.pcreview.co.uk/forums/running-bat-files-minimize

6条回答
  •  借酒劲吻你
    2021-02-01 15:27

    Assuming Windows 8 is the same as Windows 7, an "exit" is only going to exit the batch file (which it is going to do anyway).

    You need to add the exit code like this:

    Under "Program/Script":

    CMD (or command.exe, or %comspec%)

    Under "Arguments:

    /c start "Title" /min "C:\Scripts\Destination_inbound_ftp5.bat" ^& exit
    

提交回复
热议问题