Delete which skips locked files

Features wanted...
ugus
Posts: 211
Joined: 02 Jun 2006 16:42

Delete which skips locked files

Post by ugus »

A nice feature would be a kind of Delete or Nuke which
skipped locked files.

For example if I want to clean up in my temp folder, I just want to skip the locked files.

/Ulrik

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Delete which skips locked files

Post by admin »

ugus wrote:A nice feature would be a kind of Delete or Nuke which
skipped locked files.
Sounds cool, remind me in 2 weeks.

ugus
Posts: 211
Joined: 02 Jun 2006 16:42

Post by ugus »

admin wrote:Sounds cool, remind me in 2 weeks.
Something related to this could be a kind of "safe-copy" e.g.
a copy procedure which doesn't stop like Windows if either the file is locked or in corrupted.

Maybe some kind of logfile after the operation which indicate on which files you had an error.

Another cool feature to add; delete files on reboot.
This could be nice to apply on locked in-use files.

See also

http://www.xyplorer.com/xyfc/viewtopic.php?t=1004

/Ulrik

j_c_hallgren
XY Blog Master
Posts: 5824
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Post by j_c_hallgren »

ugus wrote:Another cool feature to add; delete files on reboot.
This could be nice to apply on locked in-use files.
I may be totally wrong, but it's my understanding that this is done via entries placed in the Registry...which would seem to be incompatible with XY operational principles..
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

ugus
Posts: 211
Joined: 02 Jun 2006 16:42

Post by ugus »

OK if it needs write to registry (I'm think youre right) - then its OK to skip that feature... :?

But adding support in XY for file copy/delete issues with locked/corrupted files....

...could be a really cool feature! 8)

Cheers Ulrik

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Post by admin »

ugus wrote:
admin wrote:Sounds cool, remind me in 2 weeks.
http://www.xyplorer.com/xyfc/viewtopic.php?t=1004
So, another one took the job of reminding me, Ulrik, and opened the same idea in yet another thread. I see it's urgent. Especially because I would really like to have that myself! :wink:

But, as jacky said in the other thread: it means some homework for me...

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Delete which skips locked files

Post by admin »

ugus wrote:A nice feature would be a kind of Delete or Nuke which
skipped locked files.

Code: Select all

+++ Menu File: added command "Delete (Skip Locked)"...
:D Test it and tell me what you think.

ugus
Posts: 211
Joined: 02 Jun 2006 16:42

Re: Delete which skips locked files

Post by ugus »

admin wrote:
ugus wrote:A nice feature would be a kind of Delete or Nuke which
skipped locked files.

Code: Select all

+++ Menu File: added command "Delete (Skip Locked)"...
:D Test it and tell me what you think.
I did a fast test drive cleaning up temp folder.

This messages popping up:

Your selection contains 2 locked files which will be skipped from deletion.
Click OK to continue with the deletion of the 1025 unlocked files.

Your selection now contains 36 empty folders

Click OK to delete them now.

Works fine!

Eventually a question about the last message? is this necessary? I already want to clear up the temp folder, selected all items, I don't need a confirmation about empty folders...

Maybe you should add a similar command nuking alternative instead of deleting.

Otherwise works like a charm!

/Ulrik

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Delete which skips locked files

Post by admin »

I added the "Your selection now contains ... empty folders" message to prepare the user for the following delete confirmation message. Otherwise you would get two delete confirmation messages directly following each other which is confusing I feel.

ugus
Posts: 211
Joined: 02 Jun 2006 16:42

Re: Delete which skips locked files

Post by ugus »

admin wrote:I added the "Your selection now contains ... empty folders" message to prepare the user for the following delete confirmation message. Otherwise you would get two delete confirmation messages directly following each other which is confusing I feel.
Ok...I'll see :wink:

A nuking (skip locked files) alternative would also be great!

Maybe Shift + Click on the Nuke button to invoke a Nuke (skipping locked files)

/Ulrik
Last edited by ugus on 19 Sep 2006 12:16, edited 1 time in total.

RalphM
Posts: 1932
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: Delete which skips locked files

Post by RalphM »

ugus wrote:This messages popping up:

Your selection contains 2 locked files which will be skipped from deletion.
Click OK to continue with the deletion of the 1025 unlocked files.

Your selection now contains 36 empty folders

Click OK to delete them now.
Why don't you put 'em both in one message, like:
Your selection contains 2 locked files which will be skipped from deletion.
Click OK to continue with the deletion of 1025 unlocked files and 36 folders.

EDIT: Sorry, just read the change log now - so that idea is probably not possible, since you don't seem to know in step (1) about the number of empty folders that will result from the delete op.
Ralph :)
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Delete which skips locked files

Post by admin »

RalphM wrote:
ugus wrote:This messages popping up:

Your selection contains 2 locked files which will be skipped from deletion.
Click OK to continue with the deletion of the 1025 unlocked files.

Your selection now contains 36 empty folders

Click OK to delete them now.
Why don't you put 'em both in one message, like:
Your selection contains 2 locked files which will be skipped from deletion.
Click OK to continue with the deletion of 1025 unlocked files and 36 folders.
Because I know only after the deletion of the files which folders are empty. You might for example have said "no" to a "Delete read-only file?"-prompt...

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Delete which skips locked files

Post by admin »

RalphM wrote:EDIT: Sorry, just read the change log now - so that idea is probably not possible, since you don't seem to know in step (1) about the number of empty folders that will result from the delete op.
You got it. :)

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Delete which skips locked files

Post by admin »

ugus wrote:A nuking (skip locked files) alternative would also be great!

Maybe Shift + Click on the Nuke button to invoke a Nuke (skipping locked files)
I'll add 2 things:

(1) SHIFT + delete (skip locked): -> no recycle bin
(2) SHIFT (or maybe rather CTRL??)+Nuke: -> skip locked
OR
(2) :idea: or simply make Nuke always skip locked!! Since Nuke has no confirmation dialogs anyway, it will be almost as fast as now and avoid all the locked trouble!

BTW: I wonder whether I should generally do CTRL+DEL -> skip locked. But this needs careful consideration... later.

ugus
Posts: 211
Joined: 02 Jun 2006 16:42

Re: Delete which skips locked files

Post by ugus »

admin wrote:
(2) :idea: or simply make Nuke always skip locked!! Since Nuke has no confirmation dialogs anyway, it will be almost as fast as now and avoid all the locked trouble!
I'll vote for making Nuke always skip locked.

Just my two cents /Ulrik

Post Reply