SilentCMD
SilentCMD executes a batch file without opening the command prompt window.
SilentCMD executes a batch file without opening the command prompt window. If required, the console output can be redirected to a log file. The project is written primarily in C#, distributed under the MIT License license, first published in 2016. Key topics include: batch-file, command-line-tool, windows.
SilentCMD
SilentCMD executes a batch file without opening the command prompt window. If required, the console output can be redirected to a log file.
<table> <tr><td>Download:</td><td><a href="https://github.com/ymx/SilentCMD/releases/download/v1.5/SilentCMD-1.5.zip"><strong>SilentCMD-1.5.zip</strong></a> (7 KB)</td></tr> <tr><td>Operating System:</td><td>Windows 10 or newer</td></tr> <tr><td>License:</td><td><a href="/LICENSE?raw=true">MIT</a></td></tr> </table>Command Line Syntax
SilentCMD [Options] BatchFile [BatchArguments]
Options:
/? :: Show help
/LOG:file :: Output status to LOG file (overwrite existing log)
/LOG+:file :: Output status to LOG file (append to existing log)
/LOGSIZE:bytes :: Maximum log file size after which it is truncated
/DELAY:seconds :: Delay the execution of batch file by x seconds
Examples
SilentCMD c:\DoSomething.bat
SilentCMD /LOG:c:\MyLog.txt c:\MyBatch.cmd MyParam1
SilentCMD /LOG+:c:\MyLog.txt /LOGSIZE:1000000 c:\MyBatch.cmd
SilentCMD /DELAY:3600 c:\MyBatch.cmd
Use Cases
You can use SilentCMD for running batch files from the Windows Task Scheduler. With the tool you do not get interrupted by the command prompt window that normally would pop up.
You can call SilentCMD without parameters if required (e.g. when double-clicking it in Windows Explorer). In that case you have to specify the default parameters in SilentCMD.exe.config.
<setting name="DefaultBatchFilePath" serializeAs="String">
<value>c:\temp\test.cmd</value>
</setting>
<setting name="DefaultBatchFileArguments" serializeAs="String">
<value>arg1 arg2=xyz</value>
</setting>
Contributors
Showing top 3 contributors by commit count.
