I came across a CMD batch file with this syntax: if "%~1" == "/?" ( echo usage: ... goto :eof ) What does %~1 mean as opposed to just %1 ? I tried to test it and got the same results both ways.