JGCSCS 4 Batch Files *.bat;*.cmd JGsoft support@editpadpro.com http://www.editpadpro.com/ http://www.computerhope.com/msdos.htm TRUE REM 1 DOS .bat files and Windows .cmd files 5 REM Batch File Example ECHO Batch File Example C: CD "\Program Files" DIR %1 /OGEN /P 0 FALSE 11 Comments ^[ \t]*rem.*$ TRUE FALSE 5 0 0 TRUE Echo text ^[ \t]*echo.* TRUE FALSE 9 0 0 TRUE Reserved words \b(?:echo|off|on|if|not|exist|exit|for|in|do|call|set|errorlevel|cd|md|cls|copy|dir|pause|del|delete|erase|type|popd|pushd|prompt|rd|setlocal|endlocal|echoconfig|dosonly)\b TRUE FALSE 7 0 0 FALSE Common utilities \b(ATTRIB|BACKUP|CHKDSK|CHOICE|DELTREE|DISKCOPY|DOSKEY|EDIT|FC|FDISK|FIND|FORMAT|KEYB|LABEL|MEM|MKDIR|MODE|MORE|MOVE|NET|REPLACE|RESTORE|RMDIR|SCANDISK|SORT|SUBST|XCOPY|XCOPY32|AT|CACLS|CONVERT|FINDSTR|START|TITLE)\b TRUE FALSE 8 0 0 FALSE string "[^"\r\n]++"? FALSE FALSE 0 0 0 FALSE Batch file parameter %[0-9]++ FALSE FALSE 10 0 0 FALSE Environment Variable %[a-zA-Z0-9]++% FALSE FALSE 16 0 0 FALSE Special character [><|=@&]++ FALSE FALSE 13 0 0 FALSE Command line parameter [/-]\S++ FALSE FALSE 11 0 0 FALSE Label ^[ \t]*:\S+[ \t]*$ TRUE FALSE 3 0 0 FALSE Goto \bgoto[ \t]*\S* FALSE FALSE 0 0 0 FALSE 2 ( ) TRUE 0 " " FALSE 2 0