Buttons to clear and delete any files (Useful for anyone?)

<?xml version="1.0"?> CLDEL #cnrdelete-all @nodeselect @confirm Do you relly want to clear and delete ALL selectet files?|Yes|No Rename REGEXP PATTERN "(^.*)\.(.*)" TO "\1.txt" copy "/home\plugins\cldel.bat" To {sourcepath} cldel.bat Rename PRESET= "Number Files" Delete QUIET cldel.bat

And here is the code of cldel.bat:
@echo off
for /f "delims=" %%i in ('dir /b/s *.txt')do type nul>%%i
exit

They might be more useful if you write something explaining what they do. :slight_smile:

Just try once ,you will see. Not dangerous, I promiss

It deletes things so I'd say it IS dangerous to run it without understanding what it does.

If you can't be bothered writing a short sentence or two to tell other people what the button + batch file do then I doubt many people will find them useful.

People should not have to read through XML and commands before they even know if the button does something they want. People are more likely to skip the thread entirely if it is left without a description.

BTW, if the aim it to do a secure name + data overwrite then Opus has a built-in command for that.