tags:

views:

478

answers:

2
+2  Q: 

FoxPro fxp files

I know very little about FoxPro but have a project that requires working with a third-party application, based on FoxPro, and a .fxp file. The thrid-party app is a point of sale system and the makers of the software have provided a .fxp file that allows us to export product information into an XML format.

The problem that I am running into is that the software has no way to schedule the .fxp file to run at a regular interval which we need to keep that XML file updated.

My question is, can a .fxp file be executed outside of FoxPro?

Alternatively, can I create my own FoxPro application to execute their .fxp file and have it connect to the POS database to perform the export.

Any ideas or alternatives are welcome.

Thanks, Brian

+2  A: 

Write another FoxPro program and run it with "DO file.fxp" or import FXP file into a project, set it as startup and build.

Mehrdad Afshari
+1  A: 

You can call the FXP directly from the command-line to launch FoxPro. This would allow you to schedule the application through Windows Task manager or any other program.

Something like this in a BAT file: "C:\Program Files\Microsoft Visual FoxPro 9\vfp9.exe" c:\clients\myProgram.fxp

Richard West