windows - Batch file - Custom CMD commands; /? or help display? -


i know when type command pass question mark, return information on syntax, such set /?. how can in batch file? such if have batch file in cmd's root directory , call such "batchtest /?" display message?

this work:

if "%1"=="/?" (     echo line 1     echo line 2     echo line 3 ) 

Comments