View Full Version : Folder Attributes
Jason Pate
03-22-2005, 10:55 AM
Looking for a way to set folder Attributes, any suggestions? A action of Folder.setAttributes would be nice.
Brett
03-22-2005, 11:06 AM
AFAIK File.SetAttributes works for folders as well.
Jason Pate
03-22-2005, 11:13 AM
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})
Jason Pate
03-22-2005, 11:41 AM
"Could not set file's compressed attribute."
1039
File.SetAttributes(result.."\\Production", {Hidden=true})
Its setting the Hidden attrib, but errors about compressed attribute??
Brett
03-22-2005, 12:04 PM
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.
Jason Pate
03-22-2005, 02:45 PM
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.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.