jQuery in Action, 3rd edition
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

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

Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24193

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
It's not a secret anymore!