Skip to content

Instantly share code, notes, and snippets.

@kusyka911
Last active February 19, 2019 08:59
Show Gist options
  • Save kusyka911/9162a3a453983b89680b6091371f9235 to your computer and use it in GitHub Desktop.
Save kusyka911/9162a3a453983b89680b6091371f9235 to your computer and use it in GitHub Desktop.
bat-file template
@echo off
if "%1" == "" (goto error)
if "%1" == "/?" (goto help)
if "%1" == "/h" (goto help)
if "%1" == "help" (goto help)
if "%1" == "-h" (goto help)
if "%1" == "--help" (goto help)
goto main
:help
echo %0 descripton:
goto :EOF
:main
rem your code heare
:error
echo Syntax error, use /h or -h to see help
echo *or maybe developer error*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment