Im searching for a batch file or another solution to decrypt thousonds of files in different folders (Each single file is encrypted in a .7z file) The password is known. But how is it possible to unpack all files without loosing the folder structure? Can someone help me with this? I found one batch file with the help of google:
SET source=I:\Multimedia
FOR /F "TOKENS=*" %%F IN ('DIR /S /B "%source%\*.7z"') DO "C:\Program Files\7-Zip\7z.exe" x -p1234567890 "%%~fF" -o"%%~pF\"
EXIT
But it seems that this code is unpacking the files of the external HDD(I:) to the internal HDD(C:) Is it possible to modify the code? So that it unpack the files in the same folder and maybe delete the .7z file after unpacking?
Regards