本文介绍了如何在另一个应用程序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#中打开文件
发布评论