Guest User

Untitled

a guest
Jul 20th, 2016
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. SET FOLD=C:\TEMP\aa bb
  3. SET XFROM=*.PDF
  4. SET XTO=*.pdf
  5. call :godeep "%FOLD%"
  6. goto end
  7.  
  8. :godeep
  9. SET SBF=%~1
  10. echo FOLDER:"%SBF%"
  11. pushd "%SBF%"
  12. ren "%XFROM%" "%XTO%"
  13. for /f "tokens=1 delims=|" %%A in ('dir /b /a:d "*.*"') do call :godeep "%SBF%\%%A"
  14. popd
  15. goto end
  16. :end
Advertisement
Add Comment
Please, Sign In to add comment