问题描述
我有一个命令行工具,我想使用System.Diagnostics.ProcessStartInfo从我的.NET web
应用程序运行。我使用
运行cmd.exe,然后传递命令以运行该工具作为进程的参数。
当我从Windows应用程序尝试此操作时它工作正常但是,当我从我的网络应用程序中执行此操作时,我会收到错误。
两个应用程序都在同一个用户下运行,所以我不确定它是否是一个
权限问题。
如果有人有想法,那将非常感激。谢谢!
I have a command line tool that I would like to run from my .NET web
application using System.Diagnostics.ProcessStartInfo. I run cmd.exe with
this and then pass the command to run the tool as an argument to the process.
When I try this from a Windows application it works fine, however, when I do
this from my web application I get errors.
Both applications are running under the same users so am not sure if it is a
permissions problem.
If anyone has an ideas it would be most appreciated. THANKS!
推荐答案
这篇关于从Web应用程序运行命令行工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!