Sign in to follow this  
Followers 0
roadrunner

Make Directory Not Read Only

2 posts in this topic

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:

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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
Sign in to follow this  
Followers 0