Advertisement
adamchilcott

recursiveImport.cmd

Jan 23rd, 2018
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.51 KB | None | 0 0
  1. @echo off
  2.  
  3. cls
  4.  
  5. REM ######################################
  6. REM # Recursively Import Registry Files
  7. REM # From The Folder The Script Is Ran In
  8. REM ######################################
  9.  
  10. set folder=%~dp0
  11. for /f "usebackq" %%i in (`dir /s /b *.reg`) do (
  12.         regedit /s "%%i"
  13. )
  14.  
  15. REM #############
  16. REM # START NOTES
  17. REM #############
  18.  
  19. REM # Reference:
  20. REM # <https://stackoverflow.com/questions/10952703/executing-all-the-reg-files-from-batch-file>
  21.  
  22. REM ###########
  23. REM # END NOTES
  24. REM ###########
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement