我想通过替代数据stream(ADS)在C#中的variables传递给一个文件。
批示例:
放旗帜:
echo true> c:\ temp \ a.7z:flag
阅读国旗:
更多<c:\ temp \ a.7z:标志
如果将批处理命令作为parameter passing给cmd.exe(使用Process对象),则会得到cmd.exe的启动消息:
Process myProcess = new Process(); myProcess.StartInfo.Arguments = args; myProcess.StartInfo.FileName = exe;
Microsoft Windows [版本6.1.7601]版权所有(c)2009 Microsoft Corporation。 所有Rechte vorbehalten。 C:\ Users … \ Visual Studio 2015 \ Projects \ WindowsFormsApplication1 \ WindowsFormsApplication1 \ bin \ Debug>
有没有可能不使用cmd.exe使用批处理命令?