Computer Science, asked by varshashrlke17, 2 months ago

What are REM statements? Explain with an example.​

Answers

Answered by danishashetty165
0

Answer:

Short for remark, REM is a statement placed in system files such as the autoexec. bat to skip lines from loading. A remark is created by placing "REM" (followed by a space) in front of a line. Doing this remarks the line from loading and with batch files also doesn't show the line if echo is off.

Explanation:

@echo off

REM Example line that will not be seen with echo off.

Echo Hello World!

In the example above, the first line would be skipped, and the batch file would merely echo "Hello World!" to the screen.

Alternatively, you can also place two colons (::) in front of a line to remark a line in a batch file. With two colons the line will not show regardless if echo off is in the batch file.

::This line is never seen

Echo Hello World!

Answered by bandanasahoo
4

Short for remark, REM is a statement placed in system files such as the autoexec. bat to skip lines from loading. A remark is created by placing "REM" (followed by a space) in front of a line. Doing this remarks the line from loading and with batch files also doesn't show the line if echo is off.

hope its helpful

pls thanks and follow

Similar questions