>I think that I have seen something on this, but is there a way to execute and .EXE program within a FoxPro program. on all Foxpro 6,7 and 8.0 version with Win2000, XP windows?Do you mean run an external profgram?
You can do it in on eof severalways:
Old one (shell to DOS):
RUN /N notepad.exe
WSH:
#define SW_SHOW_NORMAL 1
#define SW_SHOW_MINIMIZED 2
#define SW_SHOW_MAXIMIZED 3
oShell = createobject("WScript.Shell")
oShell.Run("notepad.exe",SW_SHOW_NORMAL,.T.)
Windows API:
DECLARE INTEGER ShellExecute ;
IN SHELL32.DLL ;
INTEGER nWinHandle,;
STRING cOperation,;
STRING cFileName,;
STRING cParameters,;
STRING cDirectory,;
INTEGER nShowWindow
ShellExecute(0, "Open", "notepad.exe", "", "", 1)
HTH