I have a file extension that is registered in windows to open with my
application, .myextension.  If I double click on a file with that
extension, myfile.myextension, it will then launch my application and
set the commandline arguments to "path to application" path to
myfile.myextension.  eg, "c:\myapplication\myapplication.exe" c:\users
\me\desktop\folder\myfile.myextension.  This is standard .NET
behavior.

Notice that the path to the application executable is surrounded in
quotes where as the file that was ran is not.  If I had run the file
in a directory with a space in it, eg. c:\users\me\desktop\folder with
space\myfile.myextension, then .NET would interpret that as four
separate parameters instead of two, "path to myapplication.exe", "c:
\users\me\desktop\folder", "with", "space\myfile.myextension"

All I'm calling is Enviornment.GetCommandLineArgs();

Is there something I'm not doing correctly or is this a bug/feature
of .NET?

-- 
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

Reply via email to