private void button1_Click(object sender, EventArgs e) { var vs_code = AppStart.FindHotInstance(AppInfo.VSCode); if (vs_code.IsValid()) { vs_code.Show(); } var file = @"E:\My Utils\IuSpy\bin\Debug\IuSpy.exe.config"; var proc = Process.Start(@"C:\Program Files (x86)\Microsoft VS Code\Code.exe", $"--wait -r \"{file}\""); }