Click to See Complete Forum and Search --> : Opening different filetypes


kuijer
May 11th, 1999, 02:48 AM
Hi,
I'm trying to build a command-line program to open files in their registered editors/viewers.
The use of this application should be like :
"open test.doc" : this would open the file test.doc in word, and "open test.txt" would open test.txt in notepad.

I know GetClassFile to get a CLSID, but i don't know how to go on from there. Any hints/tips?

Roger Osborn
May 11th, 1999, 03:19 AM
The ShellExecute() function will actually do 99% of the work for you.

Roger.