title: Getting raw (unsplit) command line in .NET
body: <p>In .NET, we can easily access split command line arguments in a string array from the argument of <code>Main(string[])</code> or <code>Environment.GetCommandLineArgs()</code>. However, is there a way to get the unparsed command line as one string?</p>
  
  <p>Background: my app is adding itself to FileExplorer context menu (like Notepad++ does). When it's launched this way, the filename is passed in without quoting, which means if there are spaces in the path, it's broken down. I know I can fix this by embrace <code>%1</code> in quotation marks in the registry like <code>myapp.exe "%1"</code>, but when I check other application's registry they didn't do so. They are plain like <code>notepad.exe %1</code> - they got the complete command line. I want to know if it is possible in .NET and how.</p>