The below code executes an existing audio or video file on your local desktop D:\ drive.
try
{
String arr = "cmd.exe /C start D:\\My_audio_or_video.mp3";
Process proc = Runtime.getRuntime().exec(arr);
proc.waitFor();
}
catch (Exception e)
{
e.printStackTrace();
}
Regards,
Kiran.
Regards,
Kiran.
[ May 21, 2008: Message edited by: K Kiran Kumar ]