REM is an ECHO command . Run in a command prompt window rem /?to get help on this command.
First, the Windows command interpreter parses this command line, like all other lines in a batch file, except for those lines that begin with a colon, which are interpreted as a label line, and not as a command line.
, % , REM . , .
%~ . , REM , Windows. , cmd.exe .
@ ECHO OFF, , Windows. , , .
script . Windows Command Interpreter (CMD.EXE)?
:
REM User name: %USERNAME%
REM User profile directory: %USERPROFILE%
REM Application data directory: %APPDATA%
REM Batch arguments: %0 %*
PAUSE
REM @ECHO OFF .