On Fri, 8 Oct 1999, Alejandro Nestor Vargas wrote:

> > Is there a way for me to specify a command to run when the dos machine
> > boots up (after config.sys and autoexec.bat are processed) from the
> > linux commandline?
> 
> You can run linux commands from dos using unix.exe program. Just add unix
> <command> at the end of autoexec.bat.

Um, I think I didn't get that! Can you explain that?

Anyway, I had the same Problem and here is a simple quick and dirty
solution.

  put an extra line into your autoexec.bat

    autoexec.bat:
       ...
       if exist autox2.bat call autox2.bat

  now run dosemu with

    echo "myspecial commands" >autox2.bat ; dos ; rm autox2.bat

  or copy whatever batchfile you want to autox2.bat (at the correct
  directory of course) and then start dos. Include 'exitemu' in
  autox2.bat to quit dosemu.

Does this help?
Hope so,

-- Andreas

Reply via email to