aspose file tools*
The moose likes Beginning Java and the fly likes How to create a direcory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to create a direcory " Watch "How to create a direcory " New topic
Author

How to create a direcory

Mathews P Srampikal
Ranch Hand

Joined: Nov 26, 2002
Posts: 211
Can anybody tell me how to create a Directory in C Drive using Java.io package


Thanks,
Mathews
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

This works:
new java.io.File("C:\DirectoryName").mkdir();
Of course, using a drive name that way makes your program work only on Windows (other systems don't have this concept.)


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to create a direcory