Retrieving command line arguments after startup

  • Thread starter Thread starter John M Deal
  • Start date Start date
J

John M Deal

You can use either:

Environment.GetCommandLineArgs

or

Environment.CommandLine

The first returns a string array the second just a string (that you'll
need to parse). Hope that helps.

Have A Better One!

John M Deal, MCP
Necessity Software
 
Is there a way to retrieve command line arguments to my System.Windows.Forms
object OTHER THAN using the constructor Main( string args[] ) ?

Thanks in advance.
Chris Hough
 
Back
Top