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

Recommended Answers

All 2 Replies

Member Avatar for szukalski

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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.