Looking for a way to set folder Attributes, any suggestions? A action of Folder.setAttributes would be nice.
Professional Software Development Tools
Looking for a way to set folder Attributes, any suggestions? A action of Folder.setAttributes would be nice.
AFAIK File.SetAttributes works for folders as well.
Any special trick to it, I tried it seemed to have no effect, I will
result = Dialog.FolderBrowse("Folder To Copy", _ProgramFilesFolder.."ReDoc Suite")
File.SetAttributes(result.."\\Production", {ReadOnly=false, Hidden=true})
Last edited by Jason Pate; 03-22-2005 at 10:14 AM. Reason: Spelling
"Could not set file's compressed attribute."
1039
Its setting the Hidden attrib, but errors about compressed attribute??File.SetAttributes(result.."\\Production", {Hidden=true})
I have looked into this a bit. I have confirmed that it does in fact work properly. For me, I do not get the error. Application.GetLastError returns 0. In this case you can probably safely ignore the return value. We will look more into why it happens, however.
Thanks, after some testing I think I am getting the result I was looking for, and the error seems to have gone away, if it comes back I will post here and save project file for your review.