C#类类似于Java Desktop类 [英] C# class similar to Java Desktop class

查看:105
本文介绍了C#类类似于Java Desktop类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

打开带有关联应用程序的文件

我想打开一个在其中提交相应的申请,例如打开windows的功能。

I want to open a file in it respective application, e.g. open function of windows.

同样的事情可以在java中借助 Desktop 类来完成文件名和相应的文件被打开。

Same thing can be done in java with the help of Desktop class where you pass the file name and the respective file is opened.

但不知道怎么做C#。

推荐答案

System.Diagnostics.Process.Start("filename.doc");

这篇关于C#类类似于Java Desktop类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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