How to open file in a non scriptable application?

G

Guest

I have an application that accepts opening various kinds of image files by
dragging and dropping them on the application. Unfortunately, it is not a
com-object, from what I can tell. Is there any other way that I can send a
file reference to the application using vb.net?

Coming from a Macintosh background I know there was a construct that had the
syntax of "open 'the file' using 'named application' even though the
application formely wasn't scriptable. Is there anything similar, or if not,
can I make a workaround by simulating a drag and drop-operation?

All suggestions most welcome
 
K

Ken Tucker [MVP]

Hi,

When you drop a file on an application it should open the
application with the file name as a command line argument.

http://msdn.microsoft.com/library/d...emenvironmentclassgetcommandlineargstopic.asp

Ken
----------------
message I have an application that accepts opening various kinds of image files by
dragging and dropping them on the application. Unfortunately, it is not a
com-object, from what I can tell. Is there any other way that I can send a
file reference to the application using vb.net?

Coming from a Macintosh background I know there was a construct that had the
syntax of "open 'the file' using 'named application' even though the
application formely wasn't scriptable. Is there anything similar, or if not,
can I make a workaround by simulating a drag and drop-operation?

All suggestions most welcome
 

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