This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes JNLP and Web Start and the fly likes Create folder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Create folder" Watch "Create folder" New topic
Author

Create folder

mirko74
Greenhorn

Joined: Mar 15, 2001
Posts: 5
Hello,
is it possible to create a folder structure says some temp folder in drive c:\folder1\subfolder using java web start technology?
Thank you
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19693
    
  10

Sure, it's just Java. The mkdir() and mkdirs() method of java.io.File will work.
mirko74
Greenhorn

Joined: Mar 15, 2001
Posts: 5
sorry I didn't explain myself. I have a JNLP file, which launches a program and I was wondering if there was some easy way to create a folder by adding a few lines to the JNLP.
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19693
    
  10

I don't understand. The JNLP file doesn't do anything, it just describes the application. You can read its specs for yourself and find there isn't anything about creating folders there.

But really I don't understand the requirement. What would you expect to happen, and when would you expect it to happen? Every time the application is downloaded? Every time the JNLP file is accessed, even if that doesn't result in a new download?

And why can't you just have your application create this folder?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Create folder
 
It's not a secret anymore!