3.512 bytes

Service Hints & Tips

Document ID: DJON-3G7T7G

Aptiva - The REM command for the AUTOEXEC.BAT, CONFIG.SYS, and batch files

Applicable to: World-Wide

You can use the REM (REMark) command in front of a command line that you do not want DOS to use, rather than deleting the line. Using this command tells DOS you do not want it to execute the information contained in this command line. Therefore, DOS ignores the lines beginning with REM.

Deleting command lines in the configuration (CONFIG.SYS and AUTOEXEC.BAT) files may cause problems. Therefore, we suggest using the REM command so that you can easily restore the command line, if needed.

There are three advantages to using REM over deleting the line:

1.) REM allows you to test the performance of the file without deleting the information contained in the line. This process allows you to keep the information in the event the change was not beneficial.

2.) REM keeps the command line for future reference and/or editing. This is important should the line, such as a device driver, be needed again in the future.

3.) REM preserves the command line in case it was accidentally mistaken for a similar line that should have been omitted.

Since the CONFIG.SYS and AUTOEXEC.BAT files do not display or recognize remarks (statements beginning with the REM command) no harm comes to the system by using the REM instead of deleting the line.

If you are working with the CONFIG.SYS and/or AUTOEXEC.BAT files, you may consider this tip before you remove any of the lines you have in these files. Also, it is a good idea to keep copies of the original files under a different name (such as CONFIG.OLD or AUTOEXEC.SAV) for reference. Many people keep these files in the C:\DOS directory.

Search Keywords

DOS

Hint Category

DOS/Windows 3.x

Date Created

16-04-97

Last Updated

22-01-99

Revision Date

01-06-99

Brand

IBM Aptiva

Product Family

Aptiva, PS/1

Machine Type

2134, 2136, 2137, 2138, 2140, 2142, 2144, 2159, 2161, 2162, 2168, 2176, 2011, 2121, 2123, 2133, 2155

Model

all

TypeModel

Retain Tip (if applicable)

Reverse Doclinks
and Admin Purposes