CString strCommand = _T("C:\\Program Files\\Windows Media Player\\wmplayer.exe"); ShellExecute(m_hWnd,_T("open"),strCommand,strFilePath,_T(""), SW_SHOW );