The "FileComment" Command |
This command can be used to set the default comment for any file which has not already been given one and applies to these commands:
It can be used to supply default comments for file extensions. Comment searching is case insensitive. This command can be nested to any level.
The macro takes these parameters:
If no value is supplied for this parameter then the supplied comment becomes the default until a matching "/FileComment" command is encountered (block mode).
EXAMPLES |
;--- Set up some default file comments -------------------------------------- <$FileComment ".txt" Comment="Text file"> <$FileComment ".exe" Comment="Executable binary file"> <$FileComment ".dll" Comment="Dynamic Link Library"> <$FileComment ".htm" Comment="HTML"> <$FileComment ".html" Comment="HTML"> <$FileComment ".jpg" Comment="Graphics file"> <$FileComment ".gif" Comment="Graphics file"> <$FileComment ".asp" Comment="Active Server Page"> ;--- Create component and add some files ------------------------------------ <$Component "Fred" Create="Y" Directory_="INSTALLDIR"> <$File Source="A file I Installed.txt"> <$File Source="..\X\Another.txt"> <$File Source="D:\DBAREIS\tools\where.exe"> <$File Source="Slides.ppt" Destination="Slides.pps"> ;;Convert powerpoint to "Power Point Show" #( ;--- This source file has read-only set! ----------------------------- <$File Source="c:\winnt\welc.exe" Comment=^This file has the read-only attribute set. It should get copied to the file table attributes!^ CopyAttributes="ReadOnly Hidden" > #) ;--- Add some other files (demo default comment) ------------------------- <$FileComment Comment="File required by xyz"> <$File Source="required.exe"> <$FileComment Comment=""> <$File Source="NoDefaultCommentForThisFile.txt"> <$/FileComment> <$File Source="required.dll"> <$/FileComment> <$/Component>