Click to See Complete Forum and Search --> : autorun an app on startup in dos 6.2?


nerdrider
June 14th, 2001, 10:44 PM
I have a stinky old laptop with DOS 6.2 on it, I only have one program on there and I would like it to open automatically when I startup my computermachine. Do I make a batch file or something? anybody know?

Sowulo
June 14th, 2001, 11:28 PM
You just need to type

edit autoexec.bat

from the c:\> and add the name and path of the executable below whatever is already there. Then save, exit, and reboot.

Gabriel
June 15th, 2001, 01:41 AM
if the executable is a batch file Dont forget to add - Call - before the statement, E.G.

Call 1.bat

This means that executing the batch file doesnt terminate the current one.

sdrawkcab
June 25th, 2001, 06:08 AM
Originally posted by Gabriel:
<STRONG>if the executable is a batch file Dont forget to add - Call - before the statement, E.G.

Call 1.bat

This means that executing the batch file doesnt terminate the current one.</STRONG>

Or even better, copy and paste the contents of 1.bat in to autoexec.bat, as using the CALL function will leave autoexec.bat partially finished, possible leaving drivers or TSRs uninstalled... not a "must-do", but it simplifies things for newbies.