I want to be able to open a file from within my VB app, based on the file's extension (e.g. if the file is file.doc,the file would open in Word). This is basically the same behavior you get if you click on a file who has his extension registered in the file types.

Shell and CreateProcess both require the app name (in my example above, I'd have to use 'word.exe file.doc'). I'd like a call that would simply tell Windows to open the file with the app that it thinks should be used with that file.

Any ideas? Thanks.