Skip to content
The Command Line CodexMetacodex Publishing
PracticeBooksCodexNewsletterAbout
Codex/Scripting & Batch
Scripting & Batch

goto

Jump to a labeled line within a batch file.

goto :end

Practice line — try it from memory, then reveal

goto /?

Try it safely

Run goto /? in the practice shell →

← PreviouscallNext →if
Cover of Wizard's Guide to the Command Line

The printed edition is on its way

The practice shell and the Codex are free now. The bound edition of Wizard's Guide to the Command Line is coming to Amazon — get one email when it's out.

Notify me at launch

The Command Line Codex

Free, plain-language companion reference to The Wizard's Reference series. A practice shell and every command, free to use.

The series

  • 1. Wizard's Guide to the Command Line
  • 2. Networking
  • 3. Batch Scripting
  • 4. System Administration
  • 5. PowerShell

Read

  • Practice shell
  • Book One
  • Command Codex
  • Codex introduction
  • Search

Metacodex Publishing

  • About
  • Newsletter
© 2026 Metacodex PublishingC:\> exit