打开目标文件夹中的文件 [英] To Open the file in the Destination Folder
本文介绍了打开目标文件夹中的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
通过Windows应用程序(使用C#),我生成了一个excel报告,该报告将保存在用户指定的路径中.
我想提供一个按钮.
单击按钮后,我想直接打开excel报告.
Hi,
Through my Windows application, (in C#), I generate one excel report that will be saved in the path specified by the user.
I would like to provide one button.
On the click of the button I want to open the excel report directly.
推荐答案
您可以使用Process.Start
启动一个过程. 使用
You can start a process using Process.Start
Use
Process.Start("The file path + file name");
打开所需的文件
------------------------------
希望对您有帮助:)
to open the desired file
------------------------------
hope this will help you :)
这篇关于打开目标文件夹中的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文