Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling a DOS exe from foxpro

Status
Not open for further replies.

metron9

Programmer
Mar 5, 2002
94
US

Can I execute a DOS .EXE program from within Foxpro?
I could pass parameters using a .DBF table
That way I could make Clipper programs to deal with updating the the databases that are using .NTX files

There is always a way to solve a programming problem that is why I like programming so much. Keeps the grey matter going.
 
as usual I did some more reading using the search function on this board and found the answers to that question including running exe from windows api

I have decided to just create some new .DBF files write the data i need to in foxpro and then use an update program written in CLIPPER to update the main .DBF files and there associated .NTX files.

 
Use the RUN command. In your program code type
RUN program where program is the name of your DOS exe.

Hope this helps

Ken Kallaur

 
suppose exe file name is myexe.exe
Now write the following code in your program:

run /n myexe.exe

Hope this will solve your purpose
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top