Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows Media Player or .avi files
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01129484
Message ID:
01129486
Views:
14
>My splash screen has a "Demo" button and when clicked I would like to launch what ever is on the workstation for playing my demo.avi file. Windows media player can do this. I guess I have two questions.
>
>1. How can you launch what ever .exe is associated with .avi files on the workstation? My preference.
>
>2. or how could I check the workstation for windows media player (wmplayer.exe? and if found launch it?)
>
>Dallas

You could try ShellExecute to run default AVI player:
DECLARE INTEGER ShellExecute IN SHELL32.DLL INTEGER nWinHandle,;
                                               STRING cOperation,;
                                               STRING cFileName,;
                                               STRING cParameters,;
                                               STRING cDirectory,;
                                               INTEGER nShowWindow
ShellExecute(0, 'open', full_path_to_your_demo_avi_here , '', '', 1)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform