0

how can I change the attributes of a file as read only .. and hidden ....... and turn back to read write .. and visible?

3
Contributors
2
Replies
3
Views
12 Years
Discussion Span
Last Post by cosi
0

java.io.File.setReadOnly() for the obvious.
As for the rest, you will probably have to execute OS specific commands.

0

Hey sani,

Don't forget that you can always simply execute a command on the command line for this.

I remember back in the dos days doing lots of 'attrib -s +h' commands before
http://www.computerhope.com/attribhl.htm


Ed

how can I change the attributes of a file as read only .. and hidden ....... and turn back to read write .. and visible?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.