Thread View: comp.sys.ibm.pc.programmer
6 messages
6 total messages
Started by Robert Heath
Wed, 07 Mar 1990 16:00
How to comment out lines in config.sys ?
Author: Robert Heath
Date: Wed, 07 Mar 1990 16:00
Date: Wed, 07 Mar 1990 16:00
4 lines
638 bytes
638 bytes
How do you comment out lines in config.sys without getting warning messages from DOS as it attempts to read them ? Robert Heath
Re: How to comment out lines in config.sys ?
Author: Steve Resnick
Date: Thu, 08 Mar 1990 23:15
Date: Thu, 08 Mar 1990 23:15
11 lines
1000 bytes
1000 bytes
In article <5793@ncrcae.Columbia.NCR.COM> heath@ncrcae.Columbia.NCR.COM (Robert Heath) writes: >How do you comment out lines in config.sys without getting warning messages >from DOS as it attempts to read them ? > > Robert Heath There is no way to cleanly do this as far as I know, but you can place colons (:) infront of unwanted commands in config.sys if you don't mind the "Unrecognized command in CONFIG.SYS" messages.... Hope this helps.... Steve
Re: How to comment out lines in config.sys ?
Author: Jeff Sullivan, x4096 MS 4-2
Date: Fri, 09 Mar 1990 18:59
Date: Fri, 09 Mar 1990 18:59
7 lines
654 bytes
654 bytes
In MS-DOS 4.01, you are able to use "REM", just like in batch files. This is a very useful feature, but I am not sure if it's applicable to older versions of DOS. Can anyone confirm this for earlier versions? -Jeff
Re: How to comment out lines in config.sys ?
Author: Dave Tutelman
Date: Sat, 10 Mar 1990 13:30
Date: Sat, 10 Mar 1990 13:30
30 lines
2077 bytes
2077 bytes
In article <1990Mar8.231513.24361@Octopus.COM> stever@octopus.UUCP (Steve Resnick ) writes: >In article <5793@ncrcae.Columbia.NCR.COM> heath@ncrcae.Columbia.NCR.COM (Robert Heath) writes: >>How do you comment out lines in config.sys without getting warning messages >>from DOS as it attempts to read them ? > >There is no way to cleanly do this as far as I know, but you can place colons >(:) infront of unwanted commands in config.sys if you don't mind the >"Unrecognized command in CONFIG.SYS" messages.... I was about to respond with an answer like Steve's (i.e.- can't be done), when I spotted an article on a "null driver" that gave me an idea. (PC Magazine, V9#2, 1/30/90, p. 307, letter from Jefrrey J. Hamilton.) This is a driver that installs and does nothing. Jeff suggests naming it for things you want temporarily out, without having to change the config file. But it can also be used to solve Robert's problem... Name the null driver REM. Since it ignores all arguments, you can put in your CONFIG.SYS file lines like: device=REM This line is a comment. Haven't tried it, but it ought to work. The program is small enough to be entered from the debugger (that's how Jeff shows it). +---------------------------------------------------------------+ | Dave Tutelman | | Physical - AT&T Bell Labs - Lincroft, NJ | | Logical - ...att!pegasus!dmt | | Audible - (201) 576 2194 | +---------------------------------------------------------------+
Re: How to comment out lines in config.sys ?
Author: Charles Hannum
Date: Mon, 12 Mar 1990 08:05
Date: Mon, 12 Mar 1990 08:05
10 lines
894 bytes
894 bytes
In article <89@cvbnetPrime.COM>, jsulliva@cvbnet.UUCP (Jeff Sullivan, x4096 MS 4-2) says: > > In MS-DOS 4.01, you are able to use "REM", just like > in batch files. This is a very useful feature, but I > am not sure if it's applicable to older versions of > DOS. Can anyone confirm this for earlier versions? No. It tries to execute the "REM" as a command and issues an error message.
Re: How to comment out lines in config.sys ?
Author: Joseph D. Shapiro
Date: Mon, 12 Mar 1990 17:41
Date: Mon, 12 Mar 1990 17:41
19 lines
1174 bytes
1174 bytes
In article <5793@ncrcae.Columbia.NCR.COM> heath@ncrcae.Columbia.NCR.COM (Robert Heath) writes:
>How do you comment out lines in config.sys without getting warning messages
>from DOS as it attempts to read them ?
>
> Robert Heath
try prepending the line with SHELL=
dont forget to include a _real_ SHELL= line at the end of the file.
for example...
SHELL=DEVICE=DONTWANT.SYS
SHELL=this is a comment.
DEVICE=ANSI.SYS
SHELL=C:\DOS\COMMAND.COM C:\DOS /R
--
__--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__--__
Joe Shapiro "My other car is a turbo...
ISC-Bunker Ramo ...too."
{decvax,yale,philabs,oliveb}!bunker!shap
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads