arkadaşlar ben bin uzantılı bir dosyayı exeymiş gibi çalıştırmak istiyorum bunun için elimde bir kod var yanlız bu kodda cmd ile çalışıyor ben cmdnin hiç açılmamasını istiyorum başka bir kodlama ile bu işlemi yapmak mümkünse kodları verebilirmisiniz
private **** button1_Click(object sender, EventArgs e)
{
if (File.Exists("asd.bin") == true)
{
ProcessStartInfo myApp = new ProcessStartInfo();
myApp.FileName = "cmd.exe";
myApp.Arguments = @"/K asd.bin";
myApp.WindowStyle = ProcessWindowStyle.Hidden;
myApp.CreateNoWindow = true;
try
{
Process.Start(myApp);
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
else
MessageBox.Show("asd.bin Dosyası bulunamadı", "Hata", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
private **** button1_Click(object sender, EventArgs e)
{
if (File.Exists("asd.bin") == true)
{
ProcessStartInfo myApp = new ProcessStartInfo();
myApp.FileName = "cmd.exe";
myApp.Arguments = @"/K asd.bin";
myApp.WindowStyle = ProcessWindowStyle.Hidden;
myApp.CreateNoWindow = true;
try
{
Process.Start(myApp);
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
else
MessageBox.Show("asd.bin Dosyası bulunamadı", "Hata", MessageBoxButtons.OK, MessageBoxIcon.Error);
}