Chuck Floyd Posted August 10, 2006 Share Posted August 10, 2006 This statement is being executed on a Win2K machine: $Result = FileSetAttrib("C:\webdev.xml","-R") It does not return an error, and it does not remove the read-only attribute from the file. Is there something else that I am missing? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted August 10, 2006 Moderators Share Posted August 10, 2006 This statement is being executed on a Win2K machine:$Result = FileSetAttrib("C:\webdev.xml","-R")It does not return an error, and it does not remove the read-only attribute from the file. Is there something else that I am missing?Is that for any file or just this particular one? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Chuck Floyd Posted August 10, 2006 Author Share Posted August 10, 2006 Is that for any file or just this particular one?This applies to any file. Link to comment Share on other sites More sharing options...
Chuck Floyd Posted August 10, 2006 Author Share Posted August 10, 2006 The file name or type is not significant, it does not work for any file. Link to comment Share on other sites More sharing options...
Confuzzled Posted August 11, 2006 Share Posted August 11, 2006 What are the current file attributes? Do you have security admin rights to alter the file attributes? The help file says a return code of 1 is success. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now