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

Get CD Room path through code  RSS feed

 
Shabbir Anjum
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to get cd room path through coding
give me answer about it
 
Jose Botella
Ranch Hand
Posts: 2120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch, shabbir
This is working in W2K
File[] roots = File.listRoots();
System.out.println(java.util.Arrays.asList(roots));
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!