在Windows媒体播放器中播放.au格式文件 [英] Playing .au format files in windows media player

查看:267
本文介绍了在Windows媒体播放器中播放.au格式文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我需要从文件资源管理器中选择.au格式文件,一旦点击播放,文件应该启动windows media player来播放文件。是否可以通过利用控制台应用程序来使用C#,如果是,有人可以用
代码帮助我。


提前致谢。

解决方案

Hi Devang Mistry,


我们可以通过 &absp; 流程类, 以下代码供您参考。

 static void Main(string [] args)
{

string filePath = @" D:\ Data\video \ video.au" ;;

Process.Start(" wmplayer.exe",filePath);

Console.ReadLine();
}


祝你好运,


章龙


Hi,

I have a requirement to select .au format files from file explorer and once hit on play, the file should launch windows media player to play the file. Is this possible to do using C# by leveraging console app or so, if yes, can someone please help me with the code.

Thanks in advance.

解决方案

Hi Devang Mistry,

We could call Windows media play via  Process Class, the following code for your reference.

static void Main(string[] args)
{

    string filePath = @"D:\Data\video\video2.au";

    Process.Start("wmplayer.exe", filePath);

    Console.ReadLine();
}

Best regards,

Zhanglong


这篇关于在Windows媒体播放器中播放.au格式文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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