M
mdmatney
I need to display a list of "known file associations" registered on the
windows system, and allow the user to create a new file by selecting an
association type, and then execute the appropriate application. I know I can
use shellexecute to open an existing file, but when that file DOES NOT exist,
how do we create it.
For instance. User clicks on "Add New File" button, which then pops up a
list of known file types on the windows system. If user selects "CorelDraw"
then a new xxxxx.cdr file is created and CorelDraw is launched to edit that
file.
Shellexecute verbs do not provide for a "New" Option at least as far as I can
find in documentation at MSDN.
Any help on how to accomplish this is greatly appreciated.
Keep in mind. Each machine our software is installed on has a different set
of known file types and the software wont know other than by accessing an API
that will reveal those file types. Need to call an API to get list of known
file types, then need to call an API that will create the file type and
either launch the associated application, or then I can use shellexecute to
launch it.
--Dave
windows system, and allow the user to create a new file by selecting an
association type, and then execute the appropriate application. I know I can
use shellexecute to open an existing file, but when that file DOES NOT exist,
how do we create it.
For instance. User clicks on "Add New File" button, which then pops up a
list of known file types on the windows system. If user selects "CorelDraw"
then a new xxxxx.cdr file is created and CorelDraw is launched to edit that
file.
Shellexecute verbs do not provide for a "New" Option at least as far as I can
find in documentation at MSDN.
Any help on how to accomplish this is greatly appreciated.
Keep in mind. Each machine our software is installed on has a different set
of known file types and the software wont know other than by accessing an API
that will reveal those file types. Need to call an API to get list of known
file types, then need to call an API that will create the file type and
either launch the associated application, or then I can use shellexecute to
launch it.
--Dave