Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
API_AppRun
Message
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00795825
Message ID:
00796503
Views:
20
Sergey,

After I tried the code some different ways, I found that it failed unless I put in the path prior to the EXE name.
****************************************************************
cpathname = ALLTRIM(m.ispdir)
inparams = ALLTRIM(m.initargetdir)
* Minimize the Calling App window
HIDE WINDOW SCREEN

SET CLASSLIB TO PROCESS.VCX ADDITIVE
lcCommandline = cpathname+'ispaccts.exe '+inparams
oProcess = CREATEOBJ('API_AppRun',lcCommandline,cpathname,'NOR')
oProcess.LaunchAppAndWait()
****************************************************************
With the path, it succeeded! It was visible when I use HIDE WINDOW SCREEN. However, it was not activated. Any ideas on how it can be activated also?

Almost there now. - Steve
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform