Ben A L Jemmett wrote:
>I don't believe Win3 had the option to exit to run a program.  It's possible
>to use an Win16 API (ExitWindowsExec I think) to call a program and then
>return - if none of the available EXEs offer such a facility (exit, run,
>return) I could knock one up in VB4.0 if that's be any use to the original
>enquirer?

I was thinking that perhaps the macro recorder in Windows could be used. If
you make a macro that closes Windows and runs the macro recorder as the
first line of a BATch file (sorry I haven't even used the program, and
don't have it installed) you might be able to run the program of choice as
line two.
BUT! Since the BATch file is started in Windows will it not be closed
together with Windows? (Assuming that Windows even will be closed with a
BATch file up and running).
I think that you would need to call windows through a BATch file when you
first start it up and write to this file and then exit Windows.

Something like this should do the trick:

winstart.bat:

echo win.com > startwin.bat
startwin.bat

program1.bat:

echo program.exe >> startwin.bat
echo winstart.bat >> startwin.bat
[macro recorder line to close Windows]

To unsubscribe from SURVPC send a message to [EMAIL PROTECTED] with 
unsubscribe SURVPC in the body of the message.
Also, trim this footer from any quoted replies.

Reply via email to