>Thanks again. I used the second approach with the FindExecutable and API_APPRUN and it works great except when I detect the exe is a dll (Windows Picture and Fax View). I can get it to run in the IDE but not in my VFP exe. I set (API_APPRUN property) iccommandline = "rundll32.exe E:\WINDOWS\system32\shimgvw.dll,ImageView_Fullscreen E:\Documents and Settings\patd\Local Settings\Temp\IMAGES\". I will keep working at this. I can use qshell but really would like VFP to wait until the called exe is completed.
You have to enclose file names with spaces in them into double quotes
iccommandline = [rundll32.exe "E:\WINDOWS\system32\shimgvw.dll,ImageView_Fullscreen" "E:\Documents and Settings\patd\Local Settings\Temp\IMAGES\"]
--sb--