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

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

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?