Jump to content

Turning off Read Only status on a file


Stalker0
 Share

Recommended Posts

Hey guys, I'm creating a script that will go through a batch of files and turn off all of the read only conditions found in the files.

Now, I can code it to work through the GUI, but that's slower and clunkier than I would like. Is there a window's command line that will do this for me, so I just need to code in a series of windows commands?

Link to comment
Share on other sites

Hey guys, I'm creating a script that will go through a batch of files and turn off all of the read only conditions found in the files.

Now, I can code it to work through the GUI, but that's slower and clunkier than I would like. Is there a window's command line that will do this for me, so I just need to code in a series of windows commands?

Go to a command prompt and type
attrib /?
Should tell you everything you need to know.

Or of course you could take the easy route and use the FileSetAttrib() function in AutoIt.

Edit: Added FileSetAttrib, too quick off the mark with my ol' DOS brain...

Edited by ResNullius
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...