How to tell the difference between a VBscript is run from command line or by clicking it in a window?
- by robbie
All I want to do is differentiate between the program being run by the command line or by clicking the test.vbs file in a window.
If you run the script by typing C:\testFolder\test.vbs in a command prompt, then I want the program to run differently than if you double clicked test.vbs in the testFolder.
Is there some system variable that I can…