Creating a File

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
 
M

mdmatney via AccessMonster.com

Thanks Alex. Anyone else have ideas other than resources? I have spent 4
days scanning resources and have yet to find anything. I have tried the
vbaccelerator.com and freevbcode.com resources an still nothing.

Here is an example:

from Windows Desktop, Right click | New

See the list of files that can be created? How do I expose that list to my
application and create that file (which would be a blank document) and then I
can use Shell Execute to open the file.

--Dave


Alex said:
Hi,
i think you can find solution on www.vbaccelerator.com, you have to look at
their custom windows explorer solution source code
also you can look at www.freevbcode.com
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
[quoted text clipped - 29 lines]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top