开发者

How can I run a batch file silently?

开发者 https://www.devze.com 2022-12-27 20:43 出处:网络
I have a batch file with some commands that I need to run with my installer, but I\'d rather a console not appear (in Windows). I\'m executing the batch file from a WiX installer, via a custom action.

I have a batch file with some commands that I need to run with my installer, but I'd rather a console not appear (in Windows). I'm executing the batch file from a WiX installer, via a custom action. I tried adding an @ECHO OFF to the top of the file, but that didn't seem to do anyt开发者_运维百科hing.

Is there a way that I can run this batch file silently?


You can run it with stdoutout redirect to file eg. ./script > x.txt


Create a shortcut to your batch file, then edit its properties, and select the run minimized option.

0

精彩评论

暂无评论...
验证码 换一张
取 消