문제

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.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top