ON a DOS machine. How do you cancel the Autoexec.bat??

PlatinumGold

Lifer
Aug 11, 2000
23,168
0
71
Let's say you have an autoexec.bat that automatically sends you to the program. which key will prevent the autoexec.bat from executing?? is it f8 there also??
 

PlatinumGold

Lifer
Aug 11, 2000
23,168
0
71
ok. so it was f5. thanks.

can't edit the file because the program that boots up doesn't really have an exit function. poorly designed program. this computer really has one purpose and one purpose only to run the Lasik machine using this old DOS program.

anyway, thanks. i'd forgotten f5.
 

Tominator

Diamond Member
Oct 9, 1999
9,559
1
0
I was thinking of the REMark as well but if I'm remembering right that is for Windows.
 

Harvey

Administrator<br>Elite Member
Oct 9, 1999
35,057
67
91
Originally posted by: PlatinumGold
ok. so it was f5. thanks.

can't edit the file because the program that boots up doesn't really have an exit function. poorly designed program. this computer really has one purpose and one purpose only to run the Lasik machine using this old DOS program.
Sure you can. All you need is a DOS text editor. EDIT.COM (in DOS) is about the worst I've seen, except for the old COPY COM routine.

Once you F5 and get to the command prompt, go to the root directory, and edit the file. You could also copy AUTOEXEC.BAT to a floppy and edit it on a Windoze machine in NOTEPAD. :)
 

JW310

Golden Member
Oct 30, 1999
1,582
0
0
Originally posted by: Tominator
I was thinking of the REMark as well but if I'm remembering right that is for Windows.

REM works just fine for the autoexec.bat and config.sys files.

As for holding down shift, I think that only works when you're booting into windows, to prevent the startup items from loading. It doesn't do much of anything starting the system up on a DOS machine.

JW
 

Linflas

Lifer
Jan 30, 2001
15,395
78
91
REM works in any DOS batch file. Also if I recall correctly F8 instead of F5 allows you to step through the config.sys and autoexec.bat to see exactly what statements are doing what.
 

PlatinumGold

Lifer
Aug 11, 2000
23,168
0
71
Harvey

I was saying that I can't edit the Autoexec.bat file till AFTER i shut down, reboot and hit f5 allowing me to get to the command prompt.

 

PlatinumGold

Lifer
Aug 11, 2000
23,168
0
71
BTW, what is wrong with Edit.com??

i never had problems with it. on my old 486 laptop i would just leave off all the software and just used edit.com as my note taker.

it was ok. not great, but far from suck. it wasn't like edlin or anything.
 

xirtam

Diamond Member
Aug 25, 2001
4,693
0
0
I love COPY CON. Get done and you have two options to quit and save: F6 or CTRL-Z. CTRL-C to quit. ;)

Edit is awesome. I wrote all kinds of batch files with edit.com. Get used to COPY CON and you'll appreciate Edit. It also provides a familiar QBasic-like interface.

Seriously, though. I grew up on DOS 2.1 with BASICA. You think EDIT was bad? Have you ever used EDLIN?
 

fr

Diamond Member
Oct 10, 1999
6,408
2
81
Originally posted by: Linflas
REM works in any DOS batch file. Also if I recall correctly F8 instead of F5 allows you to step through the config.sys and autoexec.bat to see exactly what statements are doing what.

Man, that is familiar.
 

WarCon

Diamond Member
Feb 27, 2001
3,920
0
0
Originally posted by: xirtam
Seriously, though. I grew up on DOS 2.1 with BASICA. You think EDIT was bad? Have you ever used EDLIN?


I was thinking that myself. I remember when edit wasn't even available (was dos 5.0 the first dos with edit? don't remember). Edlin is the definition of user unfriendly.
 

xirtam

Diamond Member
Aug 25, 2001
4,693
0
0
Yes it was. I was thrilled when Dos 5.0 came out.

But by then I was messing around with virtual ram disks and trying to simulate a hard drive (I didn't have one on my old 8088.)

By the way, I considered myself geeky for liking edlin. Now I'm not sure I'd be able to use it that well... have to touch up on that sometime. I wrote a version of edlin in BASICA about 7 years ago.