正好有个程序用到过这个,帮你翻了翻代码贴出来吧
string name = System.Environment.CurrentDirectory + "\\1.mp3";
StringBuilder shortpath = new StringBuilder(80);
int result = GetShortPathName(name, shortpath, shortpath.Capacity);
name = shortpath.ToString();
mciSendString(@"close all", null, 0, 0);
mciSendString(@"open " + name + " alias song", null, 0, 0); //打开
mciSendString("play song", null, 0, 0); //播放
OldCout1 = NewCout1;