|
Answer» I have a huge amount of zip and rar files I need to reorganize.
I would like an interactive batch file for :
***** First rule ****** 1. Scan a folder or drive to locate all rar and zip files that contains only a single folder, and unzip that compressed file in the same folder that the compressed file. 2. Delete the initial compressed file
Best Regards
You can search for a certain file type by using DIR
To Search out all .rar files in the current folder type dir /a *.rar /b to search out all .rar files in the current folder and all subfolders type dir /a *.rar /b /s. To Unzip / Decompress the files i RECOMMEND using 7Zip As it INCLUDES a command line tool, you can download it here www.7-zip.org, ID also recommend putting the hole thing in a for loop.
For /F "tokens=1*" %%a in ('dir /a *.rar /b /s') do ( 7z e "%%a%%b" )
Okis. Thank you very much. The problem is extract and decide.
Best Regards
|