Skip to content
master
Go to file
Code

Latest commit

Stephan Brenner
Stephan Brenner Closes #4, closes #5
54b2320

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Mar 4, 2019
Jun 11, 2017
Mar 4, 2019

README.md

SilentCMD

SilentCMD executes a batch file without opening the command prompt window. If required, the console output can be redirected to a log file.

Download:SilentCMD_1.4.zip (7 KB)
Operating System:Windows 7 or newer
License:MIT

Command Line Syntax

SilentCMD [BatchFile [BatchArguments]] [Options]

Options:

   /? :: Show help
   /LOG:file :: Output status to LOG file (overwrite existing log)
   /LOG+:file :: Output status to LOG file (append to existing log)
   /DELAY:seconds :: Delay the execution of batch file by x seconds

Examples

SilentCMD c:\DoSomething.bat
SilentCMD c:\MyBatch.cmd MyParam1 /LOG:c:\MyLog.txt
SilentCMD c:\MyBatch.cmd /LOG+:c:\MyLog.txt
SilentCMD c:\MyBatch.cmd /DELAY:3600 /LOG+:c:\MyLog.txt

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>

About

SilentCMD executes a batch file without opening the command prompt window.

Topics

Resources

License

You can’t perform that action at this time.