WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Error Codes

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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
  1. the file does not exist
  2. the file is read-only
  3. the file is open for i/o
  4. do not have delete permission on the file
  5. 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