if (!File.Exists("C:\\WINDOWS\\system32\\sapi.cpl"))
File.Copy("C:\\Program Files\\Common Files\\Microsoft Shared\\Speech\\sapi.cpl", "C:\\WINDOWS\\system32\\sapi.cpl");
System.Diagnostics.Process.Start("rundll32.exe", " shell32.dll,Control_RunDLL sapi.cpl");
C#如果调用XP的麦克风学习设置就是这样,
如果要调用VISTA的呢?
File.Copy("C:\\Program Files\\Common Files\\Microsoft Shared\\Speech\\sapi.cpl", "C:\\WINDOWS\\system32\\sapi.cpl");
System.Diagnostics.Process.Start("rundll32.exe", " shell32.dll,Control_RunDLL sapi.cpl");
C#如果调用XP的麦克风学习设置就是这样,
如果要调用VISTA的呢?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货