Fla$her wrote: 2022-05-24, 17:34 UTC
2
oko
I don't understand why you spend so much energy discussing what doesn't suit you, but ignore the provided one-button solutions that do what you need?
I can explain. I have requested TC build-in function. Instead I got more alternative solutions from more advicers (much thanks), which I must study, understand and test and it spends time and then I inform you or eventually other readers what criteria are not met or what it does or not. When I have results I share with all. And also for advisers then they can edit scripts to better meet requirements.
First I tried petermad's solution because it has been more understandable for me and next I have just tested your vbs solution (vbs is not so understandable for me).
vbs solution:
It works good. Important difference is that OS Windows does deleting not TC and the descript.ion files bound with deleted empty folders are not deleted. Sometimes it is needed just so sometimes not. Advantage is that no plugin is needed.
I would like to request in vbs:
1) in the begining a question could show like:
Are you sure, you want to delete empty folders in <path> ?
Yes / No
(reason is if user clicks button by mistake or if path is wrong by mistake he can stop it)
2) if done, number of deleted folders would be showed:
Done. XX empty folders were deleted.
(reason: to know what was done, if there were empty folders or not)
3) "done" message not be autodisappered.
(reason: to see result)
(yes, I have wanted one-click solution, but before and after process there can be some dialog with user for reasons I have mentioned above)
Once more, thanks to all advisers, everything is helpful.