Groups | Blog | Home
all groups > dotnet general > october 2004 >

dotnet general : Accepting input parameters.


L. Spiro
10/27/2004 8:25:07 PM
After my program is associated with a file type, and the user double-clicks
that type of file, my program is launched.

How do I access the input parameters (command line) Windows® sends to my
application so that my application can open the file the user double-cicked?


Sujith S. Varier
10/28/2004 9:52:14 AM
Dear friend,

I think u know how to get the command line parameters that are being passed
to the application sub main as an array argument.
When u associate a file type with an application, that means in the open
action you are specifying ur application exe's path. IF u try to check the
contents of args[] paramenter, you can find that its the file path that's
being passed. ie args[0] contains the complete path of the file on whichn u
made a double click :)
I dont know, wehter this is the answer you expected.

regards
Sujith S.Varier

[quoted text, click to view]

AddThis Social Bookmark Button