Java : Using Runtime to Play song in media player

import java.io.*;
class FileDemo1{
public static void main(String ar[])throws Exception{
//Runtime.getRuntime().exec("D:\\Program Files\\Windows Media Player\\wmplayer.exe");
Runtime.getRuntime().exec("D:\\Program Files\\Windows Media Player\\wmplayer.exe \"F:\\V\\SONGS\\Dostana\\desi girl.mp3\"");
}
}

No comments:

Popular Posts