Problem with Delete command

Copy MOVE TO ..
Select ALL
Delete .

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 .

To test
Copy MOVE TO ..
Select ALL
Delete .

create a folder with a file inside it, select the file and run the above.

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}

Yes I do. That's why I said it's strange that it works. I use this

Select ALL
Delete .

Inside an empty folder and it works. It deletes the current empty folder and goes up one level.

I don't try it. I use it everyday and it works.

Don't know what to say to that - naturally, I tried the very same thing here as a test. The button does nothing at all for me.

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.

Regards, AB

and my system is Windows 7 Ultimate x64, Dopus 9.5.6.0

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.

See Delete ALL during SYNC on Windows 7 64-Bit not working

[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.

See https://resource.dopus.com/t/delete-all-during-sync-on-windows-7-64-bit-not-working/10213/1[/quote]

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.