This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 24183
    
  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
 
Similar Threads
on war file
command line
TTEXTFIELD in java
creating buttons with graphics
calender