在ASP.NET运行shell命令 [英] Running shell commands in ASP.NET

查看:131
本文介绍了在ASP.NET运行shell命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何运行在asp.net中shell命令?

How do i run a shell command in asp.net ?

我基本上要像系统(netstat的-an);

我不希望输出要显示给用户。只是想运行一些维护命令。

I don't want the output to be displayed to the user. Just want to run some maintenance commands.

推荐答案

呼叫 System.Diagnostics.Process.Start(netstat的,-an); 作为通常

这篇关于在ASP.NET运行shell命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆