I am trying to open a folder from java program by using the following java code
Desktop.getDesktop().open(new File("d:\\abc"));
I can successfully opened d:\\abc
, now this abc folder is having two sub folders images
, and songs
now my reuirement is to focus this folder then open it by depending on user given input at run time.
May be tomorrow these sub file names will be changed, but depending on user input i want to focus on corresponding sub folders and open them.
I tried lot of ways in google and stackoverflow also. But I didn't get proper way.