Rem command in Windows
The rem command helps write comments (comments) in a batch file or CONFIG.SYS. If no comment is specified, the rem command adds a vertical space.For a better understanding of how to use this command, see the example section below.
Command syntax rem
rem []
Command parameter rem
Parameters
Describe
Specify a character string to attach comments.
/?
Show help at thecommand prompt.
Remarks command rem
- The rem command will not display comments on the screen. You must use the echo command in your batch file, or CONFIG.SYS to display the annotations on the screen.
- You cannot use navigation characters () or (|) in a batch file comment.
- Although you can use the rem command without annotations to add vertical spaces to the batch file, you can also use blank lines.The blank lines will be ignored when the batch file is processed.
Example rem command
The following example shows a batch file using comments for comments and vertical spacing:
@echo off
rem tập tin chương trình này khác nhau và kiểm tra các đĩa mới.
rem It is named Checknew.bat.
rem
rem echo Insert new disk in Drive B.
pause
format b: / v chkdsk b:
To attach annotations before the prompt in your CONFIG.SYS file, add the following lines to CONFIG.SYS:
đang gỡ bỏ khi khởi động khi xác định thư mục hiện thời
prompt $ p $ g
See more:
- The qprocess command in Windows
- Qappsrv (query termserver) command in Windows
- The quser (query user) command in Windows
- The pubprn command and the pushprinterconnections command in Windows
4.1 ★ | 8 Vote
You should read it
May be interested
- Rd command in Windowsthe rd command helps delete a directory
- Cmd command in Windowsthe cmd command starts a new version of the command interpreter, cmd.exe. if used without parameters, cmd will display copyright information and the version of the operating system.
- How to use the command history function in Command Promptcommand prompt is an extremely familiar command for anyone using windows operating system. besides, a lot of current software also supports the command line to perform actions on the command prompt window, instead of on the screen.
- The sfc command in Windows(applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012)
- Reg command copy in Windowsto copy an entry to the location specified on the local pc or the remote computer we will use the reg copy command. to learn more about how to use the reg copy command, you can track the syntax, explain the command parameters and the example tipsmake.com has compiled below.
- Fc command in Windowsthe fc command compares two files or a collection of files and displays the differences between them.
- The echo command in Windowsthe echo command displays the message or turns on / off the command repeat feature. if used without parameters, the echo command will display the current echo setting.
- Xcopy command in Windowsthe xcopy command is a command prompt command used to copy one or more files or folders from one location to another. with many options and the ability to copy entire directories, the xcopy command is similar to, but much more powerful, than the copy command.
- The cacls command in Windowsthe cacls command displays or modifies an arbitrary access control list (dacl) on the specified file. the command applies to windows server (semi-annual channel), windows server 2016, windows server 2012 r2, windows server 2012.
- Clean command in Windowsthe clean command deletes all partitions or formats the volume from the current drive. the command applies to windows server (semi-annual channel), windows server 2019, windows server 2016, windows server 2012 r2, windows server 2012.