我如何使用在C#中的shell中调用它的库? [英] How could I use a library calling it in the shell in c#?

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

问题描述

我有一个可以在外壳中调用它的库.

I have a library which I can use calling it in the shell. How can I do my aplication uses the library calling it in the shell?

推荐答案

这个问题目前还不清楚,但是我认为这是您的意思:一种您习惯于通过外壳使用的程序(Windows中的命令提示符),并且想要在编写的C#应用​​程序中使用它.

如果此解释正确,则建议您研究 System.Diagnostics.Process.Start .它基本上允许您将字符串作为命令传递给外壳.

例如:
This question is very unclear, but here is what I think you mean: You have some sort of program that you are used to using through the shell(Command Prompt in Windows) and you want to use it in a C# application you are writing.

If this interpretation is correct, I suggest you look into System.Diagnostics.Process.Start. It basically allows you to pass a string which will be treated as a command to the shell.

For instance:
// Start Internet Explorer. Defaults to the home page.
            Process.Start("IExplore.exe");


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

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