如何在C#中使用Shell命令 [英] How to use Shell Command In C#

查看:112
本文介绍了如何在C#中使用Shell命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello codeproject ..

我只是需要信息和解释为什么在C#编程中我们无法使用

shell命令就像在VB.Net编程中一样?



这个下面的代码是一个例子,如何在VB.Net中使用shell命令cal calculator.exe



Hello codeproject..
i just need information and explanation why in the C# programming we can not use
shell command like in the VB.Net programming?

this below code is an example how to cal calculator.exe using shell command in VB.Net

shell("calc")





如何在C#编程中实现它?



how to implement it in the C# programming?

推荐答案

你可以使用System.Diagnostics.Process [ ^ ]


这篇关于如何在C#中使用Shell命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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