Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Program Association
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01203303
Message ID:
01205450
Views:
15
>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--
Previous
Reply
Map
View

Click here to load this message in the networking platform