How can I run a CMD or .bat file in silent mode? I'm looking to prevent the CMD interface from being shown to the user.
BAT files help in starting the big programs in the Windows system and also for the maintenance. CMD has a programming language to run the scripts and is a command interpreter. BAT is a scripting language that has an interpreter. CMD does not run a sequence of commands and hence we can say that CMD is safer than BAT.
Hidden Start (HStart) Unzip and run the program with HStartUI.exe, the process consists of three steps. Manually add or drop your batch file onto the window, make sure “Hide console window” is checked and optionally check “Run with highest privileges” if your script requires it.
SilentCMD executes a batch file without opening the command prompt window. If required, the console output can be redirected to a log file.
start /B command is the most given answer, but the command will be closed when the terminal closed. and then CTRL C, close the terminal, the command will continue to run in background.
Include the phrase:
@echo off
right at the top of your bat script.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With