Nifty batch script to purge unnecessary files and folders...
Posted: 25 Jun 2014 13:16
Hi!
I'm managing to create a script to purge unnecessary files from my music folders. I've managed to make it work when embedded in respective folder but i aim to create a exe file and run it from right-click menu.
I reckon this script is flawed and it only works well in *.bat format. As soon as i convert to exe it only works partially.
The code follows:
I need to complete it but i lack the knowledge. Is anybody willing to help me please?
Thank you in advance!
I'm managing to create a script to purge unnecessary files from my music folders. I've managed to make it work when embedded in respective folder but i aim to create a exe file and run it from right-click menu.
I reckon this script is flawed and it only works well in *.bat format. As soon as i convert to exe it only works partially.
The code follows:
Code: Select all
for %%g in (*.jpg,*.jpeg,*.m3u,*.m3u8,*.cue,*.sfv) do if not %%g == folder.jpg recycle %%g
for /d /r . %%d in (scans,covers,video,technical) do @if exist "%%d" recycle "%%d"
I need to complete it but i lack the knowledge. Is anybody willing to help me please?

Thank you in advance!