Hello,
This is wath i want to do.
Check if a application is running if it does then close it.
I know how to check on running apps:
FindWindow is the title bar of the window
SET LIBRARY TO CFYPATH + "\exe\foxtools.fll" ADDITIVE
lGetwind = regfn("FindWindow","CC","I"
lWclass=0
lHandle=callfn(lGetwind,lWclass,lWindowTitle)
IF lHandle <> 0
ON KEY LABEL ESCAPE *
SET ESCAPE OFF
WAIT WINDOW "THIS PROGRAM IS ALREADY RUNNING !" NOWAIT
QUIT
ENDIF
SET LIBRARY TO
But how can i close the running app ?
The app isn't foxpro but a own written vb app.
Thanx
This is wath i want to do.
Check if a application is running if it does then close it.
I know how to check on running apps:
FindWindow is the title bar of the window
SET LIBRARY TO CFYPATH + "\exe\foxtools.fll" ADDITIVE
lGetwind = regfn("FindWindow","CC","I"
lWclass=0
lHandle=callfn(lGetwind,lWclass,lWindowTitle)
IF lHandle <> 0
ON KEY LABEL ESCAPE *
SET ESCAPE OFF
WAIT WINDOW "THIS PROGRAM IS ALREADY RUNNING !" NOWAIT
QUIT
ENDIF
SET LIBRARY TO
But how can i close the running app ?
The app isn't foxpro but a own written vb app.
Thanx