Application risk when hiding REM lines
What are the risks in my current applications when I hide the REM lines from showing in a batch file?
What are the risks in my current applications when I hide the REM lines from showing in a batch file?
Hi Sherry,
I think there iss no harm at all when doing so. REM command is only use to remark and prevent it from executing the next time your batch file executes. You must have the @ECHO OFF to prevent it from showing to the screen also. You can use the :: to remark a line regardless if ECHO is on or off. You can also change REM to @REM if you wish to have the commands shown but still you want to hide the REM lines. Still there is no known harm on doing this to your application.
I hope it helps.
I don’t think either if adding “REM” at the beginning of the line in your batch file introduces risks to the programs you are using. The REM command is totally harmless and it only denotes remarks or additional information in the file that can be used to describe what the line does or what the batch file is for. The REM command can also be used to disable lines in the batch file. When the computer encounters the word “REM” at the beginning of any line in the batch file, the texts or command after it even if it’s a command line is automatically ignored.
Sometimes this command is used to add design inside the batch file using “*” and or other characters from the keyboard. If you love creating batch files, this is one handy command that offers different functions.