2
如何继续从AX运行powershell脚本?有没有可能通过批量工作来做到这一点?我的意思是它允许通过AX做服务器端处理?我有很多的问题,运行像FTP上传,文件生成等某些过程 感谢您的帮助 问候, 托马斯使用AX 2009调用powershell脚本
如何继续从AX运行powershell脚本?有没有可能通过批量工作来做到这一点?我的意思是它允许通过AX做服务器端处理?我有很多的问题,运行像FTP上传,文件生成等某些过程 感谢您的帮助 问候, 托马斯使用AX 2009调用powershell脚本
我用下面的代码和它的工作原理:
System.Diagnostics.Process process;
System.Diagnostics.ProcessStartInfo startInfo;
;
process = new System.Diagnostics.Process();
startInfo = new System.Diagnostics.ProcessStartInfo();
startInfo.set_FileName("powershell.exe");
startInfo.set_Arguments("path_to_my_powershell_script");
startInfo.set_UseShellExecute(false);
startInfo.set_RedirectStandardError(true);
process.set_StartInfo(startInfo);
process.Start();
你有什么试过? PowerShell不是专为这种管理而设计的吗?请参阅此处:http://technet.microsoft.com/en-us/library/hh272856.aspx。 2009年可能是一个不同的故事... –