Opened on Sep 1, 2014 at 1:48:48 PM
Closed on Sep 5, 2014 at 5:44:44 PM
Last modified on Oct 16, 2024 at 2:32:36 PM
#2872 closed Feature Request (Rejected)
FileDelete set @extended deleted count
| Reported by: | anonymous | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | Severity: | None | |
| Keywords: | Cc: |
Description
In @extended macro may be the number of deleted files.
FileDelete('*.lock')
$count = @extended
Attachments (0)
Change History (6)
comment:1 by , on Sep 1, 2014 at 2:00:01 PM
| Version: | 3.3.12.0 |
|---|
comment:2 by , on Sep 1, 2014 at 4:50:11 PM
As FileDelete accepts wildcards and I imagine is a direct call to the API function, how do you expect AutoIt to know the answer?
I suggest you count the files before and after the delete and do the maths yourself.
M23
comment:3 by , on Sep 5, 2014 at 5:40:48 PM
The API that I'm assuming being used is probably DeleteFile, that function doesn't return anything other than success or fail. There doesn't seem to be any way for any language using that Windows API to get the number of files that got deleted.
comment:4 by , on Sep 5, 2014 at 5:44:44 PM
| Resolution: | → Rejected |
|---|---|
| Status: | new → closed |
follow-up: 6 comment:5 by , on Oct 16, 2024 at 12:37:20 PM
@extended seems to get set to non-zero when it failed delete a file
comment:6 by , on Oct 16, 2024 at 2:32:36 PM
Replying to vanowm:
@extended seems to get set to non-zero when it failed delete a file
... as you already stated in the forum and assume you're still waiting for an answer? or were you trying to get a speedier answer?
Either way: Please do not post in a feature request which is closed 10 years ago!

Automatic ticket cleanup.