• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

GOTO: Telling Your Batch Files Where to Go

GOTO: Telling Your Batch Files Where to Go

Your basic batch file lives a simple, linear existence. The first command gets processed, and then the second, the third, and so on to the end of the file. It’s boring, but that’s all you need most of the time.

However, there are situations in which the batch file’s usual one-command-after-the-other approach breaks down. For example, depending on a parameter or the result of a previous command, you might need to skip over a line or two. How do you do this? With the GOTO batch command:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint