Running EXE (Executables) in FoxPro

Posted on Posted in Tutorials

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 *