I have a script which uses 7zip to extract all rar files which is great.
The only problem is then I have to manually go through the folders and move the .avi or .mkv files.
The script I am currently using
FOR /D /r %%F in ("*") DO ( pushd %CD% cd %%F FOR %%X in (*.rar *.zip) DO ( "C:\Program Files\7-zip\7z.exe" x %%X ) popd )
My current setup:
D:\rared\loads of folders names, then I move them all to D:\rared\extracted
Is there a way to modify the first script or just write another one to move all the files in all sub directories to the extracted folder?