Created
December 30, 2014 01:52
-
-
Save aeesky/b1f0ceb998749fa3afc5 to your computer and use it in GitHub Desktop.
archiving all bak files in current directory and delete the source bak file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| for /f "delims=" %%a in ('dir /b/s/a-d *.bak') do ( | |
| cd /d "D:\Program Files\WinRAR" | |
| echo archiving ... time /t | |
| winrar A -ep -ibak -df %%a.rar %%a | |
| ) | |
| pause | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment