无法通过WCF服务方法中的进程类运行批处理文件 [英] Not able to run Batch File through process class in WCF service Method
问题描述
在一种情况下,我有wcf rest服务方法,并且在其中通过Process类执行批处理文件,并且该wcf服务托管在IIS上.通过批处理文件,exe将使用参数执行,并将输出放入C:\ Test文件夹.
I have one scenario where I have wcf rest service method and inside that I am executing batch file through Process class and this wcf service is hosted on IIS. Through Batch file exe will be executed with parameters and output will be put into C:\Test folder.
现在,我已经在需要访问的所有文件夹上添加了DefaultAppPool用户.当前,cmd.exe条目显示在任务管理器中,并且不执行或不执行bat文件.请建议我需要在IIS上设置的权限或特权.
Now, I have added DefaultAppPool user on all folder which I need access. Currently, cmd.exe entry shown in Task Manager and don't perform or execute bat file. Please suggest which permission or priviledge I need to set on IIS.
此致
Amit Khurana
Amit Khurana
推荐答案
用户是否具有管理员权限?
Does the user have Admin rights?
这篇关于无法通过WCF服务方法中的进程类运行批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!