Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create a folder through java

 
Vikas Kumar Sahu
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Can any one give the solution of my prob.
I want to create a folder in windows m/c through java programe .Is it possible.
If yes then kindly suggest me how...?
Thanks In advance
Vikas
 
Dhanush Dharsh
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vikas,
Checkout usage of FileSystemView. It is an abstract class under javax.swing.filechoser. You can create a subclass of FileSystemView and using that create a folder.
-Dhanush.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic