First post, by rfnagel
- Rank
- Oldbie
I have an extremely complex batch file that I use to run Command & Conquer with. The batch file is a frontend menu of sorts that does most everything that I wish to do in/with C&C.
I was wondering if there was some way to do this, but have a hunch probably not. Two of the menu options in my batch file run execute the folowing labels:
:PDFMANUAL
CLS
@ECHO Press ALT+TAB after viewing the Command and Conquer PDF manual to return to the
@ECHO Command and Conquer Manual, Maps, Strategy Guides, and Walkthroughs menu.
@ECHO.
@ECHO Press any key to continue...
PAUSE>NUL
RUNDLL32 URL.DLL,FileProtocolHandler DOCS\MANUAL\MAIN.PDF
GOTO WALKTHROUGHS
:PLAYMUSIC
CLS
@ECHO Battle control terminated. Press any key to exit and play the Command and
@ECHO Conquer music...
EVA-BCT
PAUSE>NUL
RUNDLL32 URL.DLL,FileProtocolHandler "MEDIA\MUSIC\Command and Conquer.m3u"
GOTO END
Under Windows 98 they work fine (of course), but since you can't execute something that is not located on DOSBox's mounted drive, as well as DOSBox not being able to execute a Win16/Win32 proggie, that wouldn't work.
So, my question: Is there a way (or a DOSBox command) to execute a Windows (or other external) program when DOSBox is shutdown? Both of the above could be modified to shutdown DOSBox, and then execute the RUNDLL32 commands.
Like I said, I'm pretty sure there is no way to do this, but just was wondering if I was missing something (or there was some hidden command of DOSBox that coould run something upon exiting).
(off on a tangent) Hehe, I suppose that I could always use MPXPlay and the old DOS version of the Adobe Reader <grin>.
(edit) for the extremely brave <grin>, attached is my 67KB batch file.
Rich ¥Weeds¥ Nagel
http://www.richnagel.net