Author: Kent Belan
Posted: 2011-12-05 at 11:48:37
Hello Dave,
Just tried your code, thanks, but same result.
The new EXE starts up beind the current application.
Can't use the EXEC_AND_WAIT because the main program still needs to be
running.
Both wait options produce the same results with the new EXE starting up
behind.
Any other ideas ?
Thanks,
Kent
-----Original Message-----
From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On Behalf
Of Dave Crozier
Sent: Monday, December 05, 2011 11:13 AM
To: ProFox Email List
Subject: RE: RUN an EXE
Eurico,
Have you tried to run it using WSH:
#DEFINE EXEC_NOWAIT 0
#DEFINE EXEC_AND_WAIT 1
nWait_Mode= EXEC_AND_WAIT
cFile = <program name>
loShell = CreateObject ('WScript.Shell')
Try
loShell.Run (cFile, 1, nWait)
Endtry
Dave
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/C56AAFC6A4D044BCAB3E861424AEC874@LaptopW7
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.