Link to home
Start Free TrialLog in
Avatar of rbichon
rbichon

asked on

Pass command-line arguments to already running application

I know how to parse through the command line arguments passed to the application when it was originally opened. Is it possible to pass more arguments to the application after it has already been opened? The app I am running is a single instance application and I was hoping to be able to pass them in the MyApplication_StartupNextInstance subroutine but can't seem to grab the new command-line parameters. Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rbichon
rbichon

ASKER

Nope. That was it! Thanks!!
*Just FYI, "Environment.CommandLine" ALWAYS gets the args from when the process was STARTED:
http://msdn.microsoft.com/en-us/library/system.environment.commandline.aspx

    "This property provides access to the program name and any arguments specified on the command line when the current process was started."