Hide REM lines from showing in a batch file.
The REM command only remarks the line from being executed. However, if @echo off is not in the batch file that line will still echo to the screen. To prevent these lines from being shown you can do one of three things.
Add @echo off to the batch file
If you wish to hide all commands as well as the REM lines add @echo off as the first line in the batch file.
Change the REM to @REM
If you wish to have the commands shown when the batch file is run, but still want to hide the REM lines type @REM instead of REM.
Use :: instead of REM
Finally, using the :: as the remark command instead of REM will also not print or echo the remarked line.
See the remark definition for additional information about creating on the computer.
Home
»
»Unlabelled
»
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment