Running EXE (Executables) in FoxPro

You can use the following method to run any external EXE programs in your Visual FoxPro code.

First, create a WScript.Shell object:

myshell = CREATEOBJECT("WScript.Shell")

Next, provide the EXE file path to the object and call its Run method:

myshell.RUN("C:\\externalapp.exe", 0, .T.)


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.