Computer >> 컴퓨터 >  >> 시스템 >> Windows

Windows 11/10 폴더 보기 설정 백업 및 복원 방법 (배치 파일 활용)

Windows 파일 탐색기는 직관적인 인터페이스와 다양한 편의 기능을 제공하며, 그중 하나가 바로 폴더 보기 설정입니다. 이 기능을 활용하면 폴더에 저장된 파일 유형에 맞게 표시 방식을 자유롭게 사용자 지정할 수 있습니다.

예를 들어 동영상만 모아둔 폴더라면 목록이나 자세히 보기 대신 썸네일 형태로 표시하도록 설정할 수 있고, 각 폴더마다 중간, 크게, 매우 큰 아이콘 등 원하는 아이콘 크기를 따로 지정할 수도 있습니다.

이렇게 변경한 설정은 시스템 업데이트나 오류로 인해 초기화될 수 있기 때문에, 미리 백업해 두면 언제든 손쉽게 복원할 수 있습니다. 이번 가이드에서는 배치 파일(.bat)을 사용해 Windows 11/10의 폴더 보기 설정을 백업하고 복원하는 방법을 소개합니다.

Windows 11/10에서 폴더 보기 설정 백업 및 복원하기

아래 세 단계를 순서대로 진행하면 폴더 보기 설정을 안전하게 백업하고 필요할 때 복원할 수 있습니다.

  1. 백업 및 복원용 배치 파일 생성
  2. 차단된 경우 .bat 파일 차단 해제
  3. .bat 파일 실행으로 백업 및 복원 진행

1단계: 백업 및 복원용 배치 파일 만들기

시작 버튼을 클릭한 후 검색창에 메모장(Notepad)을 입력하고, 검색 결과에서 메모장 앱을 실행합니다.

새 메모장 파일에 아래 코드를 그대로 입력하거나 복사하여 붙여넣습니다.

@ECHO OFF

title Backup and Restore Folder View Settings Tool
:choice
cls
echo.
echo OPTIONS:
echo.
echo 1. Back up your folder view settings.
echo 2. Restore folder view settings from backup.
echo 3. Cancel
echo.
echo.
set /P c=Type the option number you would like to do, and press Enter?
if /I "%c%" EQU "1" goto :verify1
if /I "%c%" EQU "2" goto :verify2
if /I "%c%" EQU "3" exit
goto :choice

:verify1
IF EXIST "%userprofile%\Desktop\Folder View Settings Backup" goto :response1
goto :backup

:response1
echo.
echo.
echo You already have a "Folder View Settings Backup" folder on your desktop.
echo Please move it to another location, and try again.
echo.
pause
goto :choice

:backup
mkdir "%userprofile%\Desktop\Folder View Settings Backup"
REG EXPORT HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults "%userprofile%\Desktop\Folder View Settings Backup\HKCU_Software_Microsoft_Windows_CurrentVersion_Explorer_Streams_Defaults.reg" /y
REG EXPORT HKCU\Software\Microsoft\Windows\Shell\BagMRU "%userprofile%\Desktop\Folder View Settings Backup\HKCU_Software_Microsoft_Windows_Shell_BagMRU.reg" /y
REG EXPORT HKCU\Software\Microsoft\Windows\Shell\Bags "%userprofile%\Desktop\Folder View Settings Backup\HKCU_Software_Microsoft_Windows_Shell_Bags.reg" /y
REG EXPORT HKCU\Software\Microsoft\Windows\ShellNoRoam\Bags "%userprofile%\Desktop\Folder View Settings Backup\HKCU_Software_Microsoft_Windows_ShellNoRoam_Bags.reg" /y
REG EXPORT HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMRU "%userprofile%\Desktop\Folder View Settings Backup\HKCU_Software_Microsoft_Windows_ShellNoRoam_BagMRU.reg" /y
REG EXPORT "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU" "%userprofile%\Desktop\Folder View Settings Backup\HKCU_Software_Classes_LocalSettings_Software_Microsoft_Windows_Shell_BagMRU.reg" /y
REG EXPORT "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags" "%userprofile%\Desktop\Folder View Settings Backup\HKCU_Software_Classes_LocalSettings_Software_Microsoft_Windows_Shell_Bags.reg" /y
cls
echo.
echo Backup of folder view settings successfully completed.
echo.
pause 
exit

:verify2
IF NOT EXIST "%userprofile%\Desktop\Folder View Settings Backup" goto :response
goto :restore

:response
echo.
echo.
echo You do not have a "Folder View Settings Backup" folder on your desktop.
echo Please place the backup folder on your desktop, and try again.
echo.
pause
goto :choice

:restore 
REG Delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults" /F
Reg Delete "HKCU\Software\Microsoft\Windows\Shell\BagMRU" /F
Reg Delete "HKCU\Software\Microsoft\Windows\Shell\Bags" /F
Reg Delete "HKCU\Software\Microsoft\Windows\ShellNoRoam\Bags" /F
Reg Delete "HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMRU" /F
Reg Delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU" /F
Reg Delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags" /F

REG IMPORT "%userprofile%\Desktop\Folder View Settings Backup\HKCU_Software_Microsoft_Windows_CurrentVersion_Explorer_Streams_Defaults.reg"
REG IMPORT "%userprofile%\Desktop\Folder View Settings Backup\HKCU_Software_Microsoft_Windows_Shell_BagMRU.reg"
REG IMPORT "%userprofile%\Desktop\Folder View Settings Backup\HKCU_Software_Microsoft_Windows_Shell_Bags.reg"
REG IMPORT "%userprofile%\Desktop\Folder View Settings Backup\HKCU_Software_Microsoft_Windows_ShellNoRoam_Bags.reg"
REG IMPORT "%userprofile%\Desktop\Folder View Settings Backup\HKCU_Software_Microsoft_Windows_ShellNoRoam_BagMRU.reg"
REG IMPORT "%userprofile%\Desktop\Folder View Settings Backup\HKCU_Software_Classes_LocalSettings_Software_Microsoft_Windows_Shell_BagMRU.reg"
REG IMPORT "%userprofile%\Desktop\Folder View Settings Backup\HKCU_Software_Classes_LocalSettings_Software_Microsoft_Windows_Shell_Bags.reg"
cls
echo.
echo Backup of folder view settings successfully restored.
echo.
echo Waiting to restart explorer to apply.
echo Your screen will flash as explorer is restarted.
echo.
echo.
pause
taskkill /f /im explorer.exe
start explorer.exe 
exit

코드 입력이 끝나면 Ctrl + S를 눌러 파일을 저장합니다. 이때 반드시 바탕화면에 저장해야 하며, 파일 이름 맨 뒤에 .bat 확장자를 붙인 후 저장 버튼을 클릭합니다. 예를 들어 '폴더보기백업.bat'처럼 이름을 지정하면 됩니다.

.bat 확장자로 저장된 파일은 배치 파일(batch file)이라고 하며, 올바르게 작성되면 Windows 시스템에서 여러 명령을 한 번에 자동으로 실행할 수 있어 반복 작업을 간편하게 처리할 수 있습니다.

2단계: .bat 파일 차단 해제하기

배치 파일을 저장하면 Windows 보안 정책에 의해 실행이 차단될 수 있습니다. 이 경우 먼저 차단을 해제해야 합니다. 해당 파일을 마우스 오른쪽 버튼으로 클릭하고 컨텍스트 메뉴에서 속성(Properties)을 선택합니다.

속성 창에서 일반(General) 탭으로 이동한 후, 창 하단에 있는 차단 해제(Unblock) 확인란을 찾습니다. 이 항목에 체크하고 확인(OK) 버튼을 누르면 배치 파일의 차단이 해제됩니다.

참고: 속성 창에 차단 해제 확인란이 보이지 않는다면, 해당 파일이 Windows에 의해 차단되지 않았다는 의미이므로 바로 다음 단계로 넘어가면 됩니다.

3단계: .bat 파일 실행하기

차단 해제가 완료되면 준비는 끝났습니다. 배치 파일을 더블클릭하여 실행하면 명령 프롬프트 창이 열리면서 다음과 같은 선택 옵션이 표시됩니다.

  • 1번: 폴더 보기 설정 백업
  • 2번: 백업본에서 폴더 보기 설정 복원
  • 3번: 작업 취소

현재 폴더 보기 설정을 백업하려면 1을 입력하고 Enter 키를 누릅니다. 백업해 둔 설정을 복원하려면 2를 입력한 후 Enter 키를 누르면 됩니다.

복원 과정에서는 기존 레지스트리 값이 삭제된 후 백업본이 적용되며, 설정을 적용하기 위해 탐색기(explorer.exe)가 자동으로 재시작됩니다. 이때 화면이 잠깐 깜빡이는 것은 정상적인 현상이니 걱정하지 않아도 됩니다.

작업을 중단하고 싶다면 3을 입력하여 취소할 수 있습니다.

백업 폴더는 바탕화면에 'Folder View Settings Backup'이라는 이름으로 생성되므로, 안전한 위치에 함께 보관해 두면 시스템 재설치 후에도 폴더 보기 설정을 그대로 되돌릴 수 있습니다.