Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Launch a Win32 App from VFP
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Launch a Win32 App from VFP
Miscellaneous
Thread ID:
00559643
Message ID:
00559643
Views:
137
HI all,

I want to launch a win32 app or open some file from within VFP (for example a ZIP file).

To do so, I'm using Registry.vcx and Process.vcx classes.

With registry.vcx I get the app assosiated to a file extension, i.e. C:\PF\Winzip32.exe for a ZIP file.

After that I launch the app with process.vcx like this:
oProcess = CREATEOBJ('API_AppRun','c:\PF\Winzip32.exe ZIPFILE.ZIP' )
oProcess.LaunchAppAndWait()

It is working ok for known extensions, but I'd like to show a window allowing the user to choose the application he wants to use to open a file that has no app assosiated to its extension.

Am I clear?... something like if registry.vcx returns a null app assosiated, then open a "Open with" window instead of calling the LaunchApp() in process,vcx.

TIA
Fabian
Next
Reply
Map
View

Click here to load this message in the networking platform