I would like to write a Java Programm which should be able to create a Folder in Windows, but the Client should be a able to decide on the Name of the Folder. How can I do that?
Thanks for any suggestions!
I would like to write a Java Programm which should be able to create a Folder in Windows, but the Client should be a able to decide on the Name of the Folder. How can I do that?
Thanks for any suggestions!
Create a File object and use mkdir() to create a new folder.
File folder;
folder = new File("path/to/new/folder");
folder.mkdir();
Obviously you will need to check if the folder already exists and you will need to use an inputted string for the name of the folder.