Modify command line arguments before Application.Restart()
问题 My winforms (not clickonce) application takes command line arguments that should only be processed once. The application uses Application.Restart() to restart itself after specific changes to its configuration. According to MSDN on Application.Restart() If your application was originally supplied command-line options when it first executed, Restart will launch the application again with the same options. Which causes the command line arguments to be processed more than once. Is there a way to