Sign in to follow this  
Followers 0
Chuck Floyd

Problems with FileSetAttrib

5 posts in this topic

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?

Share this post


Link to post
Share on other sites



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?

[center]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.[/center]

Share this post


Link to post
Share on other sites

Is that for any file or just this particular one?

This applies to any file.

Share this post


Link to post
Share on other sites

The file name or type is not significant, it does not work for any file.

Share this post


Link to post
Share on other sites

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.

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