fatih29 Posted November 24, 2021 Share Posted November 24, 2021 //Process process = new Process(); // process.StartInfo.FileName = @"C:\Users\tek\Desktop\C#\AIO v2\AIO v2\AIO\bin\Release\Programlar\CHECK.exe"; // process.StartInfo.CreateNoWindow = true; // process.StartInfo.UseShellExecute = false; // process.Start(); Üsteki Kodlama ile exe dosyası Çalışıyor fakat(@"C:\Users\tek\Desktop\C#\AIO v2\AIO v2\AIO\bin\Release\Programlar\CHECK.exe";==>burayı (Programlar\CHECK.exe; böyle nasıl kısaltırım yani proje dosyasından çalıştırmak istiyorum Quote Link to comment Share on other sites More sharing options...
korasoglu Posted February 14, 2022 Share Posted February 14, 2022 Application.StartupPath + "\Programlar\ gibi yapabilisin Quote Link to comment Share on other sites More sharing options...
By_FaRuK Posted February 15, 2022 Share Posted February 15, 2022 using (Process proc = new Process()) { ProcessStartInfo komut = new ProcessStartInfo { WindowStyle = ProcessWindowStyle.Hidden, FileName = "cmd.exe", Arguments = "/C \"" + Application.StartupPath + @"\Programlar\Program.exe" }; proc.StartInfo = komut; proc.Start(); proc.WaitForExit(); } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.