我无法在C#中运行此过程;
var process3 = Process.Start("CMD.exe", "/c echo -ne "HTCU" | dd of=/dev/block/mmcblk0p3 bs=1 seek=33796");
process3.WaitForExit();
答案 0 :(得分:2)
使用\
来转义引号,如下所示:
\"
您的代码行将如下所示:
Process.Start("CMD.exe", "/c echo -ne \"HTCU\" | dd of=/dev/block/mmcblk0p3 bs=1 seek=33796");