如何在另一个应用程序C#中打开文件

编程入门 行业动态 更新时间:2024-10-10 04:24:02
本文介绍了如何在另一个应用程序C#中打开文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

基本上,我无法弄清楚在Visual Studio中使用C#时,Windows应用程序在单击打开的文件"时要创建一个按钮,然后使其在"VLC媒体播放器"中播放.如果有人能指出正确的方向,我将会非常满意.

Basically I cant work out how too in Visual Studio using C#, Windows Application make a button when clicked open "file" and make it play in "VLC media player" for example. If anyone can point me in the right direction I will be very greatfull.

推荐答案

创建一个新的C#流程对象(有关此信息,请参见此处 [ ^ ]). 然后使用此处 [ ^ ]打开文件. 您可能需要命令行vlc [file://] filename. Create a new C# process object (for this see here[^]). Then use the command line parameters given here[^] to open the file. You will probably need the command line vlc [file://]filename.

更多推荐

如何在另一个应用程序C#中打开文件

本文发布于:2023-11-09 23:38:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1573756.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   文件   如何在

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!