I use the following command which should create a separate EXE file (Player.exe as an interpreter).:
copy / b player.exe + game.zip game.ehe
But, the command did not create (even if the bat file is obtained), and launches an empty player.exe without game.zip.
My below code does not work:
private void button2_Click(object sender, EventArgs e)
{
saveDialog.Filter = "exe | *.exe";
if (saveDialog.ShowDialog() == DialogResult.OK) ;
{
ProcessStartInfo info = new ProcessStartInfo();
info.FileName = @"engine\windows\player.exe";
info.Arguments = "/b copy " + labelPath + saveDialog.FileName;
info.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
using (Process process = Process.Start(info))
{
process.WaitForExit();
}
}
}
Can somebody tell me why my code is not working as expected?