Find the default application for dealing with certain types

Share your advanced PureBasic knowledge/code with the community.
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Find the default application for dealing with certain types

Post by Karbon »

Code updated for 5.20+

Code: Select all

file.s="test.pdf"
file_dir.s="c:\"
exe_path.s=Space(256)

CreateFile(0,file_dir+file)

FindExecutable_(file,file_dir,@exe_path)

CloseFile(0)
DeleteFile(file_dir+file)

Debug exe_path 
Thought this was pretty cool - thanks to MLK!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

cool
Post Reply