File | Date | Author | Commit |
---|---|---|---|
LICENSE | 2018-03-25 |
![]() |
[bc7964] Initial commit |
README.md | 2018-03-25 |
![]() |
[c775cd] Described no arguments error and adjusted ordering |
invisible.vbs | 2018-03-25 |
![]() |
[ff617f] Add files via upload |
Run commands on Windows invisibly
This is a very simple vbs script that runs a batch script or command without anything appearing on screen. If you put it in a folder and add the folder to you user PATH, you can use it as follows:
insivible assoc
invisible echo hello
invisible <any> <number> <of> <commands> <here>
You can also do:
"C:\path\to\invisible.vbs" <any> <number> <of> <commands> <here>
Personally I use it this way so I can create shortcuts to batch scripts and run them invisibly, then put the shortcuts somewhere useful like in the "Send to" directory.
I wanted to run batch command without a window appearing. Honestly it seems like something like this should be included in command prompt, so I was surprised to find a relative lack of solutions online. I found a couple solutions online, but none were sufficient. A couple places had a version of invisible.vbs, but the way it accepted the command didn't allow for arguments, at least not simply. So I made this.
I haven't tested this outside of my PC, but I expect it should work on any windows machine that can run .vbs's.
If run with no arguments vbs send you an error message (in an ugly popup).
This is my first time posting code/software to the public, and my first vbs script ever! Any feedback is welcome.