Anyone know a method for a batch script to determine if it is being called from another batch script?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
carlsomo
Posts: 91
Joined: 02 Oct 2012 17:21

Anyone know a method for a batch script to determine if it is being called from another batch script?

#1 Post by carlsomo » 15 Jul 2017 20:06

I vaguely remember someone bringing up this issue but my search failed

So anyway I wish to display certain statements if the script is being run from the command line and not display the statements if it is being called by another script.


Post Reply