Link to home
Start Free TrialLog in
Avatar of Meir Rivkin
Meir RivkinFlag for Israel

asked on

WMP with command line

hi,

i'm trying to launch windows media player (10) with a command line.
the result is always "the system cannot find the file specified.
the code:

try
                  {
                        string strCmdLine = "C:\\Program Files\\Windows Media Player\\wmplayer.exe /play /fullscreen c:\\Castaway.mp3";
                        Process.Start(strCmdLine);
                  }
                  catch(Exception ex)
                  {
                        MessageBox.Show(ex.Message);
                  }

i double checked and the file is there, what's wrong?
ASKER CERTIFIED SOLUTION
Avatar of AlexFM
AlexFM

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Meir Rivkin

ASKER

cheers