Advertisement
Nimsi

Doc

Apr 12th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. @echo off
  2. setlocal enabledelayedexpansion
  3. md Archive\Word
  4. set origcd=%cd%
  5. set run="%origcd%Soft\WinRAR\winrar.exe"
  6. set dir=%origcd%Archive\Word\
  7. set rar=%origcd%Archive\C- -agYYYY.MM.DD.rar
  8. set pass=2584619
  9. cd /d "C:\Users\Nims\Desktop\top\"
  10. for /r %%f in (*.doc *.docx) do copy "%%f" "%origcd%Archive\Word\%%~nf_!random!%%~xf"
  11. %run% a -r -m2 -ibck -dh -ow -p%pass% %rar% %dir%
  12. RD /S /Q "%origcd%Archive\Word"
  13. cd /d %origcd%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement