Meir Rivkin
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER