wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Need Help In java.io.File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Need Help In java.io.File" Watch "Need Help In java.io.File" New topic
Author

Need Help In java.io.File

Muddassir Sayeed
Greenhorn

Joined: Jul 08, 2001
Posts: 7
hi
I am using java.io.File. I have set the file readonly from method setReadOnly() now i want to remove readonly attribute. is there any methos available to do so? and also tell me how to make a file hidden.
Thanks
Waiting gor reply
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

You can not do it in Java, BUT you can do it like this:

Where '-H' is remove hidden attribute and '+H' is set hidden attribute.
/Rene
[ July 09, 2002: Message edited by: Rene Larsen ]

Regards, Rene Larsen
Dropbox Invite
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need Help In java.io.File