Software >> OS >> Windows >> Command Line >> How to build a batch command file with syntax / usage message

@echo off IF "_%1_" EQU "__" GOTO SYNTAX :OK REM do the main job here GOTO END :SYNTAX @echo. @echo Syntax: %0 options... @echo. @echo. GOTO END :END REM end of batch file