Search found 1 match

by nagger
01 Feb 2013 17:38
Forum: DOS Batch Forum
Topic: Only 'pause' a batch script if not run from commandline
Replies: 1
Views: 2611

Only 'pause' a batch script if not run from commandline

Using the 'pause' command at the end of a script will prevent the dos-box from closing.
But this 'pause' command is annoying, if the bat-script is call from within an already opened dos-box.

Is there a way to find out if the script was started from command-line?

Thanks