Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- cls
- REM ######################################
- REM # Recursively Import Registry Files
- REM # From The Folder The Script Is Ran In
- REM ######################################
- set folder=%~dp0
- for /f "usebackq" %%i in (`dir /s /b *.reg`) do (
- regedit /s "%%i"
- )
- REM #############
- REM # START NOTES
- REM #############
- REM # Reference:
- REM # <https://stackoverflow.com/questions/10952703/executing-all-the-reg-files-from-batch-file>
- REM ###########
- REM # END NOTES
- REM ###########
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement