This is supposed to move the selected files/folder to the parent and delete the rest and the current folder.
The Select ALL is just a dummy visual representation for visual warning purposes.
Now, this doesn't work if after the move, there is nothing left. If the folder is empty after the move, somehow the Select All breaks the script and doesn't go to Delete.
Why? i have another script like this that works in all situations to delete a current folder, even empty folders:
Select ALL
Delete .
Well, in your 'other' example - I presume you actually do NOT ever run it in a folder that contains nothing... such as what is happening with your new button when you select everything in the folder, move it, then try and have the button 'Select ALL'. Try running your 'other' original button in a folder with nothing in it - and you'll see it ALSO does nothing...
I can't say if this is "intentional" behavior or not, but what I can suggest you do is modify the command(s) to give you a DIFFERENT visual warning that doesn't rely on a command that does nothing (Select ALL in an empty folder). Something like:
Copy MOVE TO ..
@confirm Delete current folder and ALL of its contents...?
Delete {s}
I tried the OP's code in a button..
Select ALL
Delete .
..and on my system it does indeed delete everything including the parent folder. It works whether the folder is empty or not. This is on XP, latest available Opus code.
It seems to me there is a problem with DELETE ALL on Windows 7 64-Bit (but don't have a problem when I select multiple files and press DEL to delete all files ...)
I'm also having an issue with DELETE ALL when I SYNC files and files should be deleted - but nothing happens. Never had a problem with XP 32-Bit.
[quote="fuzi1968"]It seems to me there is a problem with DELETE ALL on Windows 7 64-Bit (but don't have a problem when I select multiple files and press DEL to delete all files ...)
I'm also having an issue with DELETE ALL when I SYNC files and files should be deleted - but nothing happens. Never had a problem with XP 32-Bit.
I think this thread is unrelated to the problem you're seeing in your thread.
This thread is about a fairly esoteric situation where a multi-line command, which uses the Delete command in an unusual way (to delete the current directory), aborts because it doesn't think any files are selected.