Application risk when hiding REM lines

Asked By 10 points N/A Posted on -
qa-featured

What are the risks in my current applications when I hide the REM lines from showing in a batch file?

SHARE
Best Answer by Sharath Reddy
Answered By 5 points N/A #146038

Application risk when hiding REM lines

qa-featured

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.

Best Answer
Best Answer
Answered By 590495 points N/A #146040

Application risk when hiding REM lines

qa-featured

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.

Related Questions