Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot find command.com
Message
From
22/06/1999 02:58:30
Marco Beuk
Innovero Software Solutions
The Hague, Netherlands
 
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00231999
Message ID:
00232353
Views:
19
>>We like to unzip a file from within our VFP 6.0 program. So we call pkunzip to do the job (!PKUNZIP ...) On most machines this works fine but on one machine we get the message 'Cannot find command.com'. However we can start a dos-prompt and even pkunzip manually. The machine has a correct path and comspec. There is no FoxRun.pif because there is no VFP6.0 installed but if I create one it won't work. Even make copies from the command.com to all common directories won't help.
>>
>
>Someone has modified the DOS search path and forgotten to include the directory containing command.com; it'probably either something in AUTOEXEC.BAT or something done by a login script. If this is Win9x, make sure that the \WINDOWS and \WINDOWS\COMMAND directories are in the search path. If this is NT, check the AUTOEXEC.NT for the system, and you might want to associate a custom one with PKUNZIP.
>
>You also might try using my API_APPRUN class instead of the RUN command.
>
>>Do you have a suggestion to solve this problem? (Or do you know if there is a third party product to unzip files, it must be zip)
>>
>>Thanks,
>>Marco

Thanks for your help. I know for sure the dos search path is correct. I like to try your Api-appRun class. Where can I find it?

Marco
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform