日期:2014-05-17 浏览次数:21165 次
copy /b d:\toyean.jpg + d:\toyean.rar over.jpg
RunCmd("copy /b " + textBox1.Text + "+" + textBox2.Text + @" F:\images\已伪装的图片文件.jpg");
public void RunCmd(string cmd)
{
Process proc = new Process();
proc.StartInfo.CreateNoWindow = true;
proc.StartInfo.FileName = "cmd.exe";
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.RedirectStandardError = true;
proc.StartInfo.RedirectStandardInput = true;
proc.StartInfo.RedirectStandardOutput = true;
proc.Start();
proc.StandardInput.WriteLine(cmd);
proc.Close();
}