2013-06-08, 20:34
(2013-06-08, 18:11)NewYears1978 Wrote:(2013-06-07, 00:20)corpgator Wrote: Anyone know a clever way to delete art from the art packs for roms I don't have? I could do it manually, but it's too much of a chore.
Oh, and when RCB extracts a game from .7z or .zip, where does it put it? Does it delete it immediately after it's done? I'd rather it leave it there until I say delete it since I'm going to be playing it several times and would rather not have it constantly extracting and writing to my drive.
Put this in a text file with a batch extension
Code:@echo off
for %%f in ("C:\test2\*.jpg","C:\test2\*.png") do (
if NOT exist "%%~df%%~pf%%~nf.zip" (if NOT exist "%%~df%%~pf%%~nf.rar" (
del "%%~ff"
)
)
)
Change path accordingly
If you need to see the files that are being deleted for any reason use this one instead
Code:@echo off
for %%f in ("C:\test2\*.jpg","C:\test2\*.png") do (
if NOT exist "%%~df%%~pf%%~nf.zip" (if NOT exist "%%~df%%~pf%%~nf.rar" (
del "%%~ff" in echo "%%~ff"
)
)
)
I like this. I'd be very interested in knowing what other batch tricks you have.