2013-05-25: Update to RunExit tool

Posted at 2013-05-25 18:07:47 by SHD

This is an update to the RunExit tool I created a few years ago for Windows 3. The original tool just plain ran the program and waited for it to complete. It didn't set the working directory for the program it ran (which messed up some programs, such as the games from Microsoft's Best of Entertainment pack) and didn't pass parameters, which may limit the usefulness in some other cases.

I've now updated the tool so it does both. For instance, you might run a game with a command line parameter like so:

win c:\runexit\runexit c:\games\mygame\mygame.exe /cheatmode

That starts Windows, which in turn starts RunExit, which then runs MYGAME.EXE in the directory C:\GAMES\MYGAME and passes it /cheatmode on its command line. After the game exits, RunExit shuts down Windows, returning to the DOS Prompt.

Comments

Good post

Posted at 2013-07-11 08:16:17 by Dennis

I have a file that I have to run with parameters as well as with different working directory. How would the syntax look like?

Posted at 2013-08-21 13:25:29 by Michal

Well, Michal, the total syntax consists of the following parts:

  1. "win", which starts Windows
  2. "c:\runexit\runexit.exe", which tells Windows to start "runexit.exe" which in tself is located in "c:\runexit"
  3. the full path to the program you're trying to run, so you might be trying to run "c:\lotus\123.exe". The current path will be "c:\lotus" and the program started by RunExit will be "123.exe"
  4. "/some /parameters", everything else is passed as a parameter to the program specified in part 3.
So for that example, it'd be: win c:\runexit\runexit.exe c:\lotus\123.exe /some /parameters

Posted at 2013-08-21 22:45:19 by Steven Don

Thanks very much. Must say the reply was very quick.
Wondering if you could help me with one more thing. I really need to get around 100 different apps running for university students to use. I can get some of them running but some of them are closing immediately. If I will be quick enough I can click on dosbox window I can get it to "stay" but otherwise it just closes straight away.

Posted at 2013-08-22 17:51:58 by Michal

In some games it does not work type: Abracadabra Pink Panther - Pink Panther Passport to danger ... giving error loading

Posted at 2014-04-04 20:57:32 by Silvio

runexit to add a timer to start the game
sorry for my english

Posted at 2014-04-05 21:09:29 by Silvio

I solved it, it was enough to install Windows internal drivers without installing Driver SB16.
Runexit works great

Posted at 2014-05-11 13:20:49 by Silvio

I tried your utility with Check Mate Plus (a cash book program). But it simply opens windows shell and nothing else happens. I gave the following command from dosbox "C:\windows\win c:\runexit\runexit c:\chkmate\cmpwin.exe". Where am i going wrong?

Posted at 2014-05-17 19:02:37 by Vignesh

I have solved the problem. I was using Dosbox SVN Daum custom build. I tried to revert back to the last official version 0.74 and it worked like a charm. Thanks for the tool

Posted at 2014-05-28 19:35:04 by Vignesh

Does not work with SimCity 2000 for Win3.1
I think its the fault of WinG.

Posted at 2014-06-24 19:03:58 by UnixRoot

Post a comment

Note: HTML is not permitted, URLs will be linked automatically. Spam comments will result in a permanent ban.
Type these 4 symbols into the edit field