Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Cd Room Path  RSS feed

 
Shabbir Anjum
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My file is in cd ,i want to get it but i do not know my cd room where in which drive ???..
 
Jason Steele
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I'm not sure which one it is either.

You can use File.listRoots() to get a list of the local drives, then choose it from a JComboBox....would that work for you?

like this:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!