I found this script and I modified it for my use but I’m not good in Windows batch.
Can anyone help me with cutting the extension from %%x?
FOR /D /r %%F in ("*") DO (
pushd %CD%
cd %%F
FOR %%X in (*.rar *.zip) DO (
unzip -o -d %%X
)
popd
)
To get only the name without the extension, use
~nin the variable :%~nXat command line or escaped in the batch file%%~nXYou can get the reference for variable expansion in the MS Technet For page.