1590 FileDelete Failed.
Keywords: 1590 FileDelete Failed.
Question:
I keep getting the error 1590 FileDelete Failed.
I know the files are not in use when I execute the function, any ideas?
Answer:
Generally, FileDelete will fail for one of 5 reasons
- the file does not exist
- the file is read-only
- the file is open for i/o
- do not have delete permission on the file
- do not have delete child permission on the parent directory.
User Reply:
One of the files is READ-ONLY. Used the function FileAttrSet toremove the Read-Only attributes on all the files...
DirChange("C:\Temp\")
FileList=FileItemize("*.*")
FileAttrSet(FileList,"r")
FileDelete(FileList)
Article ID: W14353
Filename: 1590 FileDelete Failed.txt
File Created: 2011:03:03:16:10:48
Last Updated: 2011:03:03:16:10:48