FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour shellexecute
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
shellexecute
Posted: Wed Dec 01, 2010 05: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
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: shellexecute
Posted: Sun Dec 05, 2010 05: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 :-)
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.
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
Re: shellexecute
Posted: Sun Dec 05, 2010 10:53 PM

Uwe
Thanks for the help. Always appreciated.

Thank you

Harvey

Continue the discussion