shellexecute

shellexecute

Postby hag » Wed Dec 01, 2010 5:10 am

Running shellexec("exe") from a program in directory #1. To Run an exe in another directory #2.
After the exe is closed in directory #2 i need to change a variable in directory #1.
How can I find out when the exe is closed in directory #2 from directory #1.

Thansk always for the help
Thank you
Harvey
hag
 
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California

Re: shellexecute

Postby ukoenig » Sun Dec 05, 2010 5:58 pm

Harvey,

I don't know the kind of EXE, is running in Directory 2 ( a FWH-application ? )

You can test if any Application is still running with :

DLL32 FUNCTION GetExiCodP;
( hProcess AS LONG, ;
@lpExitCode AS LONG ) ;
AS LONG PASCAL;
FROM "GetExitCodeProcess" LIB "KERNEL32"


DLL32 FUNCTION GetExiCodT;
( hThread AS LONG, ;
@lpExitCode AS LONG ) ;
AS LONG PASCAL;
FROM "GetExitCodeThread" LIB "KERNEL32"

maybe using a Timer to check the Return-value

for more Informations about < GetExitCodeProcess > You can search in the Internet

Best Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: shellexecute

Postby hag » Sun Dec 05, 2010 10:53 pm

Uwe
Thanks for the help. Always appreciated.
Thank you
Harvey
hag
 
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 28 guests