我使用如下代码:运行从代码异常perl脚本
static void Main(string[] args)
{
ProcessStartInfo perlStartInfo = new ProcessStartInfo(@"C:\strawberry\perl\bin\perl.exe");
perlStartInfo.Arguments = "c:\\ebm\\parse_ebm_log.pl";
perlStartInfo.UseShellExecute = false;
perlStartInfo.RedirectStandardOutput = true;
perlStartInfo.RedirectStandardError = true;
perlStartInfo.CreateNoWindow = false;
Process perl = new Process();
perl.StartInfo = perlStartInfo;
perl.Start();
perl.WaitForExit();
string output = perl.StandardOutput.ReadToEnd();
}
现在我有这样的例外,当我看着perl.MainModule: MainModule =“perl.MainModule”扔类型的异常
'System.ComponentModel.Win32Exception' 基{System.SystemException} = { “一个ReadProcessMemory或WriteProcessMemory的请求的仅一部分 完成”}
目标构建支持x64由于同一perl.MainModule一异常时就表示无法运行X32程序的x64(类似的东西)
Perl是否独自工作(不从.Net中调用)? – m0skit0 2013-02-27 15:27:42
什么是'C:\草莓\ perl \ bin \ perl.exe -V:archname'(大写'V') – ikegami 2013-02-27 16:44:51