Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

Create a file invisible.vbs with the following contents:

CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False
This can go anywhere, but remember where it is as this is the first part of a 3 part command process

Next you create your command:

example.cmd

Then you create the command file example-silent.cmd to be called, its contents would look something like this:

wscript.exe "M:\absolute\pathto\invisible.vbs" "M:\absolute\pathto\example.cmd"

Now you can call example-silent.cmd and you may see a window open for >1/2second and it will disappear. I love this script, once you know a .cmd is polished, you can use this, and to troubleshoot just run the example.cmd.

  • No labels

1 Comment