Modify ↓
Opened 17 years ago
Closed 17 years ago
#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)
Note:
See TracTickets
for help on using tickets.

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