• Hey, guest user. Hope you're enjoying NeoGAF! Have you considered registering for an account? Come join us and add your take to the daily discourse.

Quick AUTOEXEC.BAT question

Status
Not open for further replies.
Is there a way to have autoexec.bat format a drive and automatically enter "Y" for "Yes" at the "Are you sure?" prompt? (Or maybe skip the prompt altogether) And after the format is completed to automatically run another program on the same floppy or CD? Please tell me it's possible, and no I'm not trying to fuck someone's computer.

A big cookie to the first person with a helpful answer.
 

Justin Bailey

------ ------
haha, this is an old trick, but

format c: /q /y should work or just format c: /y

edit: as for the rest, there's a way but i can't remember exactly. Maybe just run a:progname.exe or something
 
sp0rsk said:
are you sure youre not trying to fuck someones computer up

Yes I'm sure. At work we get used PCs and we have to format them, then run a hardware diagnosis utility (for refurbishing purposes), they used to do everything manually and it's a big waste of time (selecting each test individually), so I made the testing process automated with a script, but I'd like to make the whole process a "one-go", just insert a bootable floppy or CD and have it automatically format the harddrive, then run the test program with the script preloaded, and then print a results report. I can do the later part, I just want autoexec to format and run the test program without user input.
 

Danj

Member
format c: /autotest should work, or alternatively if you want to give it some more options, format c: /q/u/c/autotest (q = quick, u = unconditional, c = check for bad clusters).

By the way - yes, that is a real option for the format command, don't try it just to see if it works unless you really want to format your drive. You can find some more undocumented DOS commands and switches here.

Hope this helps.
 
Status
Not open for further replies.
Top Bottom