Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run command works in command window but not in a program
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01439658
Message ID:
01439660
Views:
63
>I have a run command - automating 7zip that typed in the command window works, but when added to program fails
>the string in the command window is
>
>run '7z e -y zipfile.zip'
>
>in the program it is a little different
>lcZipString='7z e -y zipfile.,prg'
>run (lzZipString)
>
>
>The command window opens for a second and then closes.
>
>Any ideas?
>Mike

Use instead run &lcZipString

or

even better ShellExecute.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform