Skip to content

Instantly share code, notes, and snippets.

@wings27
Last active April 11, 2017 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wings27/d7569b0401040305ddf10e95db05b419 to your computer and use it in GitHub Desktop.
Save wings27/d7569b0401040305ddf10e95db05b419 to your computer and use it in GitHub Desktop.
@echo off
SETLOCAL ENABLEDELAYEDEXPANSION
FOR /F "tokens=* USEBACKQ" %%F IN (`dir /b /ad`) DO (
echo "C:\Program Files\WinRAR\Rar.exe" u -r -hpPASSWORD -m5 -- %%F %%F
)
ENDLOCAL
echo.
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment