This is an update to RunAndWait in Tools.dll.
Simply replace your old Tools.dll (if you have it) with the new one.
Must go in the %OS%\System directory

There have been some emails asking me to add a few things: 

1) Commandline options - Like having Excel start with a spreadsheet already open.  
nReturnValue = RunAndWait('C:\program files\microsoft office\excel.exe "c:\work files\Accounts.xls"') 
will work just fine as shown...Little ticks around the parameter will give very unsatisfactory results.
If you cannot replicate this, then it is something on your end.  This is not anything new.

2)  Support for pathnames with spaces in them...As above...this already works.  I can't possibly guess 
what could be causing your session to NOT work.  I run it both on Win95 and Nt 4.0.

3) Support for specifying how the program starts...If it was something that ran automatically, 
you might not want the user to see it at all!
Send your nState as:
	0 - Default  Same as not sending it.
	1 - Program will not be seen...It better terminate on its own!
	2 - Program will start maximized
	3 - Program will start minimized
	4 - Program will start minimized, but will not gain any focus
	5 - Same as 0, but will not gain any focus
Note - If a program you are calling maximizes itself somewhere in its code...this will override my stuff :(

4) Return Values
-256  Shows something wrong.  Check your declaration
0   Function returned normally
-1  Createprocess failed.  Could not find or execute file.  Check your commandline...network connections, etc

New stuff:
Syntax
DECLARE Integer RunAndWait in Tools String, Integer

I've experimented with command lines stored in memo fields...Must assigned it to a variable first...sorry.

