I have another dilema...I am now trying to delete a certain type of file from inside the archives (zip / rar) that are sub-directories deep...Let me explain the folder structure:
Games > 2000 > 2001 > 2002 > 2003 > 2004 > 2005 > 2006 > 2007 > 2008
For example: You have have in the 2000 folder (note 2000 is a subfolder under Games) file.zip or file.rar. I need to delete a file inside file.zip or file.rar (depending what archive type is in that folder). I already tried using this code, but unfortuanetly it won't delete inside the archive if it's inside sub-folders.
I've tried something like this:
for %%i in (*.zip) do "WinRAR.exe" d -r %%i *.avi
But that will only work if the the batch file is in the same directory as the archives. I need to be able to work recursively. I just looked in the Winrar help file, but this doesn't seem possible using the 'd' command with the -r switch...Is there another way to accomplish this task?
Hello, is there not a single soul that can help me get this code to work? Or something entirely different that will work?
Thanks again!
-Brian
This post has been edited by Brian Jester: 22 August 2008 - 09:01 AM



Help
Back to top










