Discussion Locked

batch file part2

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

In order for a batch to be executed you have to call it? Is this correct?

FREC

5 replies

by steved

You have to call it from another batch file, open it from Explorer, or run it from a DOS prompt by typing its name.

by syscokid

No. You can execute a batch file directly at a command prompt, e.g., go to command prompt and type mybatch.bat and the file will execute (or double-click it in My Computer).

"Call" is used from within a batch file to run another batch file. Theoriginal batch file pauses while the "called" batch file does its thing, then the original batch file begins processing with the next line after the "call" function.

This discussion is closed to new replies.