Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RUN command help
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00142840
Message ID:
00142873
Views:
28
>I thought about using the RUN command to zip some files using PKZip software (DOS version) in Visual FoxPro 5.
>
>For example:
>RUN pkzip c:\zipfiles\mydata.zip c:\datafile\mydata.dbf
>
>But what happens is that the FoxPro software executables get zipped instead of my data file. I guess it is because I have those parameters following the PKZip executable and they are not being used nor seen by Visual FoxPro's RUN command.
>
>How can I fix the problem. Is there a better way to run PKZip (DOS version) from Visual FoxPro? Help please. And thank you.

Steve,

Personally, I think that the best way would be to create a batch file to do the job. You'd simply have: PKZIP %1 %2. Once the batch file is created, create a shortcut (PIF) file. You can then have the window automatically closed when PKZIP finishes. Then by using ShellExecute() you can not only run the batch file, but hide the window as well.

Let me know if you're interested in more details.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform