Comments
Top  Previous  Next


Use comments in a script to document the meaning of commands, settings, switches etc.

·Create a single-line comment by putting two slashes ("//") in front of the comment text, the syntax checker then ignores everything until the end of the line.  
·Comments are supported outside sections and in the [Settings] section and the command sections.  
·It is not possible to use comments and blank lines in the [Machines], [DataFiles] and [Data] sections.  

Examples

Comments in [Settings] - possible both on separate lines and in the end of a row

// Home directory and home directory permissions
SET HomeRoot=w:\users
SET HomeDir=%HomeRoot%\copy(%PIN%,1,2)\%AccountName% // Two first digits in PIN is birth year
SET HomeDirPermissions=%AccountName%:F administrators:F System:F

Comments in a command section - only possible on separate lines

// The /s switch causes rd to remove all directories and files in the specified directory   
DOS echo y| rd %HomeRoot%\%AccountName%\ /s