用C#打开我的应用程序的文件吗? [英] Open my application's files in C#?

查看:84
本文介绍了用C#打开我的应用程序的文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序创建文件扩展名为.mhm的文件.

My application creates files with the .mhm file extension.

打开其中一个文件时,我希望我的应用程序启动并打开文件.

When one of these files are opened I want my application to start and open the file.

现在,该应用程序已启动,但文件未打开.

Right now the application starts up but the files are not opened.

我该怎么办?

推荐答案

要执行的文件的名称位于main方法的args参数中.

The name of the file you want to execute is the in the args parameter of your main method.

这篇关于用C#打开我的应用程序的文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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