Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with API_APPRUN
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00529409
Message ID:
00529939
Views:
12
>>>I am using the API_APPRUN class in my program, and am having a problem with it. On 2000 machines, it works without a hitch. On every single 98 machine we've tested it on, it hangs when I run this code:
>>>
>>>ThisForm.RunApp.icCommandLine="PKZ -3 -- -+ -) -O MOD.ZIP _MDCPT.DBF"
>>>ThisForm.RunApp.LaunchAppAndWait()
>>>
>>>I've got around 20 pieces of code like this (each one unzipping a specific file from mod.zip), and on every "ThisForm.RunApp.LaunchAppAndWait()", it hangs until I hit Escape (that's programmed into the VCX).
>>>
>>>Has anyone else had this problem with API_APPRUN and 98 machines? Am I missing something? I tried to contact the author, but to no avail.
>>>
>>>This is the code that is in LaunchAppAndWait():
>>>
>>>***code deleted intentionally***
>>>
>>>It's hanging inside that DO WHILE loop. Any API Guru's out there know why this happens? Thanks!
>>
>>Does the desired command work when run manually from a DOS box under W98? The
>>reason why I ask is that the NT/W2K CMD.EXE command processor interprets some
>>PKZIP parameters differently from W9x.
>
>Yes, it works fine. (all of them do)

A SWAG, but you might try something like
ThisForm.RunApp.icCommandLine="COMMAND /C PKZ -3 -- -+ -) -O MOD.ZIP _MDCPT.DBF"
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform