I am looking for a simple batch or vbs script I can edit to complete the following tasks.
- Search a folder (including sub dirs) for *.rar files.
- Extract the *.rar found to a specific drive i.e E:/ or F:/ (I can change the file for this)
- The twist, is the script must rename the extracted file to the directory name.
i.e
C:\Documents\Shop1_A\file.rar
Inside file.rar there is a file.pdf
I require the script to extracted the file.rar to a drive and rename the extracted file to E:\Shop1_A.pdf
There will only ever be 1 file in the archive (no duplicate or overwrite errors)