Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我无法在 C# 中运行此进程;
var process3 = Process.Start("CMD.exe", "/c echo -ne "HTCU" | dd of=/dev/block/mmcblk0p3 bs=1 seek=33796"); process3.WaitForExit();
用于\转义引号,如下所示:
\
\"
您的代码行将如下所示:
Process.Start("CMD.exe", "/c echo -ne \"HTCU\" | dd of=/dev/block/mmcblk0p3 bs=1 seek=33796");