(VFP) - How To Run Exe File and include them to your Project

*******************************
** Author : Leosan **
** Date Publish : 29/01/2005 **
*******************************
* Examples how to run Windows Calculator
*

declare long ShellExecute in "shell32.dll" long hwnd, string lpszOp,string lpszFile, string lpszParams,string lpszDir, long nShowCmd
declare long GetDesktopWindow in"win32api"
local hDCScreen
hDCScreen = GetDesktopWindow()
ShellExecute( hDCScreen, "open", "calc.exe", "", "d:\", 1)

Comments

Stephen said…
Thanks - that worked like a dream

Popular posts from this blog

(VFP) - Running Visual FoxPro on Linux

(VFP) - How to put calendar on your vfp application