I used this bit of code last night to rename text files that are inside zip files and now I tried it and it doesn't want to work...
Code:
for %%i in (*.zip) do "PROGRAMFILES%\WinRAR\WinRAR.exe" rn %%i *.txt description.txt
What this does is rename the .txt files to a file named description.txt for each one of the txt files inside the zip. But when I ran that batch code just a little while ago, I got this error:
Code:
Error
Unknown option ""
Note: A couple of the text files did rename, but the rest of them did not. And I did *alot* of work getting the text files inside each zip file, so please don't say I need to re-do that part...Is there a way to re-name these text files?
Note: They are long filenames, I wonder if that's why I got the error, 'cause the one's that did rename, were shorter names like 8.3 length filenames.
Thanks!
-Brian
Last edited by Brian07002; 08-05-2008 at 11:24 PM..
|