1422: DirAttrSet: Directory Not Found or Access Denied
Keywords: 1422 DirAttrSet
Question:
I created a subdirectoryc:\junkunder that I created 3 subdirstest1 test2 test3I made test3 a hidden directory.Then I run the following script:
DirAttrSet("*.*", "rash") message(1,2) a=DirItemize("*.*") message("",a)which generates a 1422 error.Then I change the mask to "*.":
DirAttrSet("*.", "rash") message(1,2) a=DirItemize("*.*") message("",a)and it doesn't complain, but it also doesn't unhide the directory.What gives?
Answer:
DirAttrSet does not take wild cards. The list must be a tab-delimited or vertical bar list. So what you need to do is the following:
- Use the IntControl(5,1,0,0,0) to unhide the directory.
DirAttrSet(DirItemize("*.*"), "rah")
Article ID: W14141Filename: 1422 DirAttrSet Directory not Found or Access Denied.txt