Modify

Opened 17 years ago

Closed 17 years ago

#1171 closed Bug (No Bug)

FileDelete *.* stops on undeletable file

Reported by: eric.peyremorte@… 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 Valik, 17 years ago

Resolution: No Bug
Status: newclosed

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

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.