Modify ↓
#1171 closed Bug (No Bug)
FileDelete *.* stops on undeletable file
| Reported by: | Owned by: | ||
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.2.12.1 | Severity: | None |
| Keywords: | Filedelete | Cc: |
Description
The following command stop if one file is undeletable. It should go on with the other files in the folder.
FileDelete("c:\windows\temp\*.*")
Ex:
c:\windows\temp
-> test.bat
-> patch.exe
-> oifea.tmp -> this file is in use, the command FileDelete stops here
-> log.txt -> this files are left....
-> snmplog.txt
Maybe an option to ignore undeletable files would be helpful ?
ex: FileDelete("folder",option) -> option 0: to stop on undeletable file, 1: to ignore errors
Attachments (0)
Change History (1)
comment:1 by , on Sep 11, 2009 at 4:45:02 PM
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

You can easily write something using FileFindFirstFile()/FileFindNextFile() if the built-in behavior is not satisfactory.