Felix
Felix

Reputation: 852

How to restart app without Command Line Arguments

How can I restart application without Command Line Arguments?

Say i have my app started with some arguments, but on restart i want to get rid of any arguments.

Application.Restart(); will restart app using the same command line arguments that were used to start app in the first place.

Don't really want to use second app to start the first one.

Upvotes: 0

Views: 938

Answers (1)

Ben Voigt
Ben Voigt

Reputation: 283901

You can use Process.Start to launch any program with any arguments you like.

Upvotes: 2

Related Questions