Jump to content
Sign in to follow this  
Chuck Floyd

Problems with FileSetAttrib

Recommended Posts

Chuck Floyd

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
SmOke_N

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.

Share this post


Link to post
Share on other sites
Chuck Floyd

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
Chuck Floyd

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
Confuzzled

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  

×