How to open file in a non scriptable application?

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
Back
Top