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_StartupNextI nstance subroutine but can't seem to grab the new command-line parameters. Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
*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."
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."
ASKER