Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to call the default image browser?
Message
From
12/07/2002 00:57:33
 
 
To
12/07/2002 00:37:10
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00677854
Message ID:
00677857
Views:
23
This message has been marked as the solution to the initial question of the thread.
>I wanna let the user choose an image file from my GetFile() function, then use the default image browser of his computer to open the image.
>What command/function should I use? Any help of reference will be greatly appreciated, thanks very much!

you can do this:
oWSH = CreateObject("wscript.shell")
oWSH.Run("D:\yourdir\yourfile.jpg")
assuming that Windows Scripting Host is installed. Alternatively, you can use Windows API. Check FAQ #8134.
Claudio Lassala
Previous
Reply
Map
View

Click here to load this message in the networking platform