-2

我无法在 C# 中运行此进程;

var process3 = Process.Start("CMD.exe", "/c echo -ne "HTCU" | dd of=/dev/block/mmcblk0p3 bs=1 seek=33796");
        process3.WaitForExit();
4

1 回答 1

2

用于\转义引号,如下所示:

\"

您的代码行将如下所示:

Process.Start("CMD.exe", "/c echo -ne \"HTCU\" | dd of=/dev/block/mmcblk0p3 bs=1 seek=33796");
于 2013-10-19T14:54:45.383 回答