It's programming time!/Batch/Rem

From Create Your Own Story

(Difference between revisions)
(Created page with '==Rem== <div style="background-color:rgb(245,245,245);"> The REM command is used to add comments to your batch files. They get skipped over when it runs. It allows you to add inf…')
m
Line 21: Line 21:
*[[It's_programming_time!/Batch/Echo|'''rem''' sucks, I want to go back to '''echo'''.]]
*[[It's_programming_time!/Batch/Echo|'''rem''' sucks, I want to go back to '''echo'''.]]
*[[It's_programming_time!/Batch/Help|Just tell me how '''help''' works. Then I won't need you anymore.]]
*[[It's_programming_time!/Batch/Help|Just tell me how '''help''' works. Then I won't need you anymore.]]
 +
 +
[[Category:It's programming time!|Batch]]
 +
[[Category:It's programming time!/Batch|Intro]]

Revision as of 02:31, 16 July 2016

Rem

The REM command is used to add comments to your batch files. They get skipped over when it runs. It allows you to add information that doesn't need to be displayed when it's run but can be helpful when editing the file.

If you make a file you can leave reminders for yourself:

  1. Try out the following if you really need an example:
@echo OFF
rem @echo OFF is a good line to start your batch files with.

rem Blank lines don't matter. It's fine if you leave them in.

help echo
rem You can usually use help command name to learn about a command.

pause

Remember: This file is mostly comments. It doesn't really do much.

Personal tools