Link to home
Start Free TrialLog in
Avatar of Simon Chen
Simon ChenFlag for Canada

asked on

VB open file

I am designing a program in VB, I have saved the file path in the database, how can I set when I click open file ,it can pop up the software which can open the file.
example, I saved a avi movie file path in the database, when I click open/browsing, it will auto detect the file format and  pop up media player and  play this movie.

Thanks
Avatar of Jorge Paulino
Jorge Paulino
Flag of Portugal image

If you do Shell("your file name") it will open the assigned application.
Avatar of Simon Chen

ASKER

such like my file in c:\movie\demo.avi

then: shell("c:\movie\demo.avi"). is it right?
ASKER CERTIFIED SOLUTION
Avatar of Jorge Paulino
Jorge Paulino
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial