Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have DOS 6.22 installed
and I whant to add text mesages to the autoexec.bat fileI can add the text no problem ..BUT when thh PC boots up for every line of text I entered it displayes..
C:\>
Bad command or file nameHow can I stop it from displaying the Bad command or file name?
Do I use brackets or somthing so it will just display my message??

You have too write like this:
echo off
echo Message to user
Echo off means that echo donīt shows. But if you jsut want a text for your self in the file, that donīt echo on the screean write REM first in the line

"echo" works fine, you can also make a simple text file, put whatever you want in it, call it TEXT.TXT or whatever, and then put TYPE TEXT.TXT in AUTOEXEC.BAT near the end.
That is, if you're trying to add text that will display, not comments. For comments... use like Kringla mentioned (REM).

You want to add comments to your autoexec.bat? You could type REM and a space at the left of each comment line. But the conventional way to remark any batch file is to begin the comment line with a semicolon like this.
; I am adding these lines to explain that the
; first line after commentary is the Driver
; for my CD-ROM.
The lines with the semicolons will have
no effect whatsoever on the processing of the
autoexec.bat. In fact the Windows 3.1 startup files like SYSTEM.INI for example do not recognize REM and only a semicolon will
remove the line from processing.

Actually fred, it's a colon. You can also just skip that and do this:
@ECHO OFF
GOTO STARTNo colons or REMs needed, it'll automatically skip to the START label so you can write anything you want here.
:START
:the rest of the AUTOEXEC file

: is a label
:: equals rem
rem equals remarkOne one of my very old computers it gives a message
echo Well if your game hit a key and maybe
echo this peice of junk will actually boot.
pause >nullol
W.L.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |