Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running files
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00544695
Message ID:
00544723
Views:
20
>Hello all,
>
>I try to run files from VFP, but the RUN command only allows me to run programs, but not for example TXT or DOC files.
>I need to do this without automation, because these can be any files. I also do not want to use the Windows scripting host. Is there an API or any other command in VFP to run files with their associated programs?

There's also the _ShellExecute class in the _Environ.vcx class library that you'll find in the FFC folder directly beneath VFP. Further, the Windows Script Host's WScript.Shell object's Run method can do this and wait for the called application to close as well.
George

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

Click here to load this message in the networking platform