[comp.os.msdos.misc] How to force windows startup at run time?

philipc@runx.oz.au (Philip Craig) (03/19/91)

Hi netters,
	I've noticed that Word for Windows and Excel are both able to force
Windows to start up if they are run from the DOS prompt. I was wondering
if anyone knows how I could force my own program to do this?

Please reply to me by e-mail as it reaches me three weeks more quickly than
this newgroup does (seriously). I will summarize to the net.

	Thanks,
	Philip.

-- 
| Philip Craig          | ACSnet,Ean,CSnet: philipc@runxtsa.runx.oz.au         |
| RUNX Unix Timeshare   | Arpa:  philipc%runxtsa.runx.oz.au@UUNET.UU.NET       |
| Wahroonga  NSW  2076  | Janet: philipc%runxtsa.runx.oz.au@UK.AC.UKC          |
| Australia             | UUCP:{uunet,mcvax}!munnari!runxtsa.runx.oz.au!philipc|

cadsi@ccad.uiowa.edu (CADSI) (03/20/91)

From article <1991Mar19.124646.24338@runx.oz.au>, by philipc@runx.oz.au (Philip Craig):
> Hi netters,
> 	I've noticed that Word for Windows and Excel are both able to force
> Windows to start up if they are run from the DOS prompt. I was wondering
> if anyone knows how I could force my own program to do this?
> 
> Please reply to me by e-mail as it reaches me three weeks more quickly than
> this newgroup does (seriously). I will summarize to the net.

write your own stub program that exec's Windows with the given program
as the first parameter.  argv[0] should be win, argv[1] could be "/3" or
"/s" or "/r" or nothing.  The next argv should be the program you wanna
run under Windows.

					Tom Hite


|----------------------------------------------------------------------------|
|Tom Hite					|  The views expressed by me |
|Manager, Product development			|  are mine, not necessarily |
|CADSI (Computer Aided Design Software Inc.	|  the views of CADSI.       |
|----------------------------------------------------------------------------|