System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.CreateNoWindow = true;
p.StartInfo.Arguments = @"D:\first01.wma";
p.StartInfo.FileName = @"D:\Program Files\KuGou\KuGou2011\KuGoo.exe";
p.StartInfo.UseShellExecute = true;
p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;
p.Start();
p.WaitForExit();
p.Close(); p = null;程序音乐盒是启动了,但是不能播放指定的文件啊?
怎么做? .net环境下。
p.StartInfo.CreateNoWindow = true;
p.StartInfo.Arguments = @"D:\first01.wma";
p.StartInfo.FileName = @"D:\Program Files\KuGou\KuGou2011\KuGoo.exe";
p.StartInfo.UseShellExecute = true;
p.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;
p.Start();
p.WaitForExit();
p.Close(); p = null;程序音乐盒是启动了,但是不能播放指定的文件啊?
怎么做? .net环境下。
解决方案 »
- 数据库连接,多表查询
- [求助]由窗口句柄获得程序路径与时间信息
- 用工厂模式来解决switch...case...语句
- 在winform在程序里如何内嵌播放器
- c# 操作 EXCEL Range.AutoFill() 出现 Range Class AutoFill方法失败
- 一个很简单但是特郁闷的数据库问题
- 引用了第三方类库DLL,有它的源码,如何将它的源码加入到调试路径中
- 关于 多行
- string类型变量的初值到底是什么?急救!!!!!
- 谁有介绍如何使用unsafe code,API的资料,最全面的,看完就能干活的资料。
- C#写的winform程序开启10分钟左右就会卡死
- C#中double类型参与运算 精度引发的问题 求指导~
Process.Start(@"D:\Program Files\KuGou\KuGou2011\KuGoo.exe", @"D:\first01.wma");
能不能播放,也取决于播放器是否会读取这个参数。