Jump to content

Make Directory Not Read Only


Recommended Posts

can any one help me it's simple if you know how,

but how do you make a directory not read only? I have looked at FileSetAttrib but this does not do the directory itself.

I'am trying to update some files in a directory (folder), but the scripe would'nt copy the files, after investgating I discovered that the directory (folder) is read only, but the files in the directory are not, if I un read them the files copy fine as ideals. :whistle:

Link to comment
Share on other sites

  • Developers

you could just run the dos ATTRIB -R c:\yourdir command ...

EDIT: just tested the FileSetAttr and it works fine on directories too.

this case the directory is "c:\temp\test"

FileSetAttrib ( "c:\temp\test.", "-R" )
Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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...