Information générale
Catégorie:
Fonctions Windows API
Sergey,
Somehow the API_AppRun code did not work for me. Maybe I need to change how I am doing it... here is the code..
cpathname = "K:\SB\SB_RDE\SETSITE55\SBAFaria\"
inparams = ALLTRIM(m.initargetdir)
thisform.hide && hide form
***new code..
SET CLASSLIB TO PROCESS.VCX ADDITIVE
lcCommandline = 'ISPACCTS.EXE '+inparams
oProcess = CREATEOBJ('API_AppRun',lcCommandline,cpathname,'NOR')
oProcess.LaunchAppAndWait()
***
Somehow this doesn't work for me. I am almost satisfied with another approach using ShellExecute and waiting for the called EXE to delete a flagfile. But, the processor is making a lot of noise while the do while loop is looking at the flagfile.
Is there something I could use to minimize the processor use during a "do while file(flagfile)" loop? I tried "wait timeout 1" in the loop but it wrote to my form while it was hidden. Ugly result.
- Steve
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement