adding a help screen to a batch file

October 18, 2010 at 09:24:16
Specs: Windows 7
i want to add a help screen to a batch file using /? to show the syntax of the batch file as if it was an actual command
example E:\Backup.bat /?

i believe its possible though i cant find anything online accurately describing how to it..

Thank you for your time,
Zeraph776


See More: adding a help screen to a batch file

Report •


#1
October 18, 2010 at 09:55:29
@echo off & setLocal EnableDELAYedeXpansion

if %1'==/?' goto :help

:main
echo this is main

goto :eof

:help
echo bla bla


=====================================
Life is too important to be taken seriously.

M2


Report •
Related Solutions


Ask Question