How can I run a batch file silently?
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.
精彩评论