강좌 / 팁

desktop.ini 복구 + 속성 지정 배치 파일

2009.03.15 12:50

조회:12482

desktop.ini를 자동으로 복구하고 올바른 속성을 지정해줍니다.
사실 desktop.ini 파일 없어도 큰 문제는 없습니다 ㅋ
관리자 권한으로 첨부 파일을 실행하세요.

Desktop_ini_repair.cmd------------------------------------------------------------------------------------------
@ECHO OFF
CLS
ECHO.

DEL /F /Q /A- "%PUBLIC%desktop.ini"
ECHO.>"%PUBLIC%desktop.ini"
ECHO [.ShellClassInfo]>>"%PUBLIC%desktop.ini"
ECHO LocalizedResourceName=@%SystemRoot%system32shell32.dll,-21816>>"%PUBLIC%desktop.ini"
ATTRIB +S +H "%PUBLIC%desktop.ini"

DEL /F /Q /A- "%PUBLIC%Desktopdesktop.ini"
ECHO.>"%PUBLIC%Desktopdesktop.ini"
ECHO [.ShellClassInfo]>>"%PUBLIC%Desktopdesktop.ini"
ECHO LocalizedResourceName=@%SystemRoot%system32shell32.dll,-21799>>"%PUBLIC%Desktopdesktop.ini"
ATTRIB +S +H "%PUBLIC%Desktopdesktop.ini"

DEL /F /Q /A- "%PUBLIC%Documentsdesktop.ini"
ECHO.>"%PUBLIC%Documentsdesktop.ini"
ECHO [.ShellClassInfo]>>"%PUBLIC%Documentsdesktop.ini"
ECHO LocalizedResourceName=@%SystemRoot%system32shell32.dll,-21801>>"%PUBLIC%Documentsdesktop.ini"
ECHO IconResource=%SystemRoot%system32imageres.dll,-3>>"%PUBLIC%Documentsdesktop.ini"
ATTRIB +S +H "%PUBLIC%Documentsdesktop.ini"

DEL /F /Q /A- "%PUBLIC%Downloadsdesktop.ini"
ECHO.>"%PUBLIC%Downloadsdesktop.ini"
ECHO [.ShellClassInfo]>>"%PUBLIC%Downloadsdesktop.ini"
ECHO LocalizedResourceName=@%SystemRoot%system32shell32.dll,-21808>>"%PUBLIC%Downloadsdesktop.ini"
ATTRIB +S +H "%PUBLIC%Downloadsdesktop.ini"

DEL /F /Q /A- "%PUBLIC%Musicdesktop.ini"
ECHO.>"%PUBLIC%Musicdesktop.ini"
ECHO [.ShellClassInfo]>>"%PUBLIC%Musicdesktop.ini"
ECHO LocalizedResourceName=@%SystemRoot%system32shell32.dll,-21803>>"%PUBLIC%Musicdesktop.ini"
ECHO InfoTip=@%SystemRoot%system32shell32.dll,-12689>>"%PUBLIC%Musicdesktop.ini"
ECHO IconResource=%SystemRoot%system32imageres.dll,-3>>"%PUBLIC%Musicdesktop.ini"
ATTRIB +S +H "%PUBLIC%Musicdesktop.ini"

DEL /F /Q /A- "%PUBLIC%MusicSample Musicdesktop.ini"
ECHO [LocalizedFileNames]>"%PUBLIC%MusicSample Musicdesktop.ini"
ECHO Kalimba.mp3=@%systemroot%system32SampleRes.dll,-116>>"%PUBLIC%MusicSample Musicdesktop.ini"
ECHO Maid with the Flaxen Hair.mp3=@%systemroot%system32SampleRes.dll,-117>>"%PUBLIC%MusicSample Musicdesktop.ini"
ECHO Sleep Away.mp3=@%systemroot%system32SampleRes.dll,-118>>"%PUBLIC%MusicSample Musicdesktop.ini"
ECHO [.ShellClassInfo]>>"%PUBLIC%MusicSample Musicdesktop.ini"
ECHO LocalizedResourceName=@%SystemRoot%system32shell32.dll,-21806>>"%PUBLIC%MusicSample Musicdesktop.ini"
ATTRIB +S +H "%PUBLIC%MusicSample Musicdesktop.ini"

DEL /F /Q /A- "%PUBLIC%Picturesdesktop.ini"
ECHO [.ShellClassInfo]>"%PUBLIC%Picturesdesktop.ini"
ECHO LocalizedResourceName=@%SystemRoot%system32shell32.dll,-21802>>"%PUBLIC%Picturesdesktop.ini"
ECHO InfoTip=@%SystemRoot%system32shell32.dll,-12688>>"%PUBLIC%Picturesdesktop.ini"
ECHO IconResource=%SystemRoot%system32imageres.dll,-3>>"%PUBLIC%Picturesdesktop.ini"
ATTRIB +S +H "%PUBLIC%Picturesdesktop.ini"

DEL /F /Q /A- "%PUBLIC%PicturesSample Picturesdesktop.ini"
ECHO [LocalizedFileNames]>"%PUBLIC%PicturesSample Picturesdesktop.ini"
ECHO Chrysanthemum.jpg=@%systemroot%system32SampleRes.dll,-101>>"%PUBLIC%PicturesSample Picturesdesktop.ini"
ECHO Desert.jpg=@%systemroot%system32SampleRes.dll,-102>>"%PUBLIC%PicturesSample Picturesdesktop.ini"
ECHO Hydrangeas.jpg=@%systemroot%system32SampleRes.dll,-103>>"%PUBLIC%PicturesSample Picturesdesktop.ini"
ECHO Jellyfish.jpg=@%systemroot%system32SampleRes.dll,-104>>"%PUBLIC%PicturesSample Picturesdesktop.ini"
ECHO Koala.jpg=@%systemroot%system32SampleRes.dll,-105>>"%PUBLIC%PicturesSample Picturesdesktop.ini"
ECHO Tulips.jpg=@%systemroot%system32SampleRes.dll,-106>>"%PUBLIC%PicturesSample Picturesdesktop.ini"
ECHO Lighthouse.jpg=@%systemroot%system32SampleRes.dll,-107>>"%PUBLIC%PicturesSample Picturesdesktop.ini"
ECHO Penguins.jpg=@%systemroot%system32SampleRes.dll,-108>>"%PUBLIC%PicturesSample Picturesdesktop.ini"
ECHO.>>"%PUBLIC%PicturesSample Picturesdesktop.ini"
ECHO [.ShellClassInfo]>>"%PUBLIC%PicturesSample Picturesdesktop.ini"
ECHO LocalizedResourceName=@%SystemRoot%system32shell32.dll,-21805>>"%PUBLIC%PicturesSample Picturesdesktop.ini"
ATTRIB +S +H "%PUBLIC%PicturesSample Picturesdesktop.ini"

DEL /F /Q /A- "%PUBLIC%Recorded TVdesktop.ini"
ECHO [.ShellClassInfo]>"%PUBLIC%Recorded TVdesktop.ini"
ECHO LocalizedResourceName=@%SystemRoot%eHomeehepgres.dll,-304>>"%PUBLIC%Recorded TVdesktop.ini"
ATTRIB +S +H "%PUBLIC%Recorded TVdesktop.ini"

DEL /F /Q /A- "%PUBLIC%Videosdesktop.ini"
ECHO.>"%PUBLIC%Videosdesktop.ini"
ECHO [.ShellClassInfo]>>"%PUBLIC%Videosdesktop.ini"
ECHO LocalizedResourceName=@%SystemRoot%system32shell32.dll,-21804>>"%PUBLIC%Videosdesktop.ini"
ECHO InfoTip=@%SystemRoot%system32shell32.dll,-12690>>"%PUBLIC%Videosdesktop.ini"
ECHO IconResource=%SystemRoot%system32imageres.dll,-3>>"%PUBLIC%Videosdesktop.ini"
ATTRIB +S +H "%PUBLIC%Videosdesktop.ini"

DEL /F /Q /A- "%PUBLIC%VideosSample Videosdesktop.ini"
ECHO [LocalizedFileNames]>"%PUBLIC%VideosSample Videosdesktop.ini"
ECHO Wildlife.wmv=@%systemroot%system32SampleRes.dll,-142>>"%PUBLIC%VideosSample Videosdesktop.ini"
ECHO [.ShellClassInfo]>>"%PUBLIC%VideosSample Videosdesktop.ini"
ECHO LocalizedResourceName=@%SystemRoot%system32shell32.dll,-21807>>"%PUBLIC%VideosSample Videosdesktop.ini"
ATTRIB +S +H "%PUBLIC%VideosSample Videosdesktop.ini"

DEL /F /Q /A- "%ALLUSERSPROFILE%MicrosoftWindowsStart MenuProgramsStartupdesktop.ini"
ECHO.>"%ALLUSERSPROFILE%MicrosoftWindowsStart MenuProgramsStartupdesktop.ini"
ECHO [.ShellClassInfo]>>"%ALLUSERSPROFILE%MicrosoftWindowsStart MenuProgramsStartupdesktop.ini"
ECHO LocalizedResourceName=@%SystemRoot%system32shell32.dll,-21787>>"%ALLUSERSPROFILE%MicrosoftWindowsStart MenuProgramsStartupdesktop.ini"
ATTRIB +S +H "%ALLUSERSPROFILE%MicrosoftWindowsStart MenuProgramsStartupdesktop.ini"

ECHO.
ECHO 작업을 마쳤습니다.
ECHO Access denied가 뜨면 관리자 권한으로 실행해주세요.
ECHO.
PAUSE >NUL
EXIT
번호 제목 글쓴이 조회 추천 등록일
[공지] 강좌 작성간 참고해주세요 gooddew - - -
243 부산은행 인터넷 뱅킹..사용법... [5] 사나이 7883 0 05-17
242 [참고(?)]인터넷뱅킹 로그인시 블루 스크린 [5] 싸개 6536 0 05-17
241 [팁] VirtualBox에서 컴피즈가 부드럽게 실행 되네요. [6] 김윈도 7231 0 05-11
240 [팁] RC 7100 - 피망 아바 실행되네요.. [6] 김인욱 11649 0 05-11
239 윈도우7에서 Flip 3D (바탕화면 3D 창전환) 아이콘 부활시... [4] Star★Bros 10691 0 05-11
238 [팁]사용자 권한 얻는방법[윈도우7 7100] [3] 한준형 17599 0 05-08
237 XP Mode에 사용자 정의 응용프로그램 수동 추가하기 [4] deVbug 7413 0 05-02
236 잠깐 바탕화면을 보고 싶을때.. [5] 박성우 5900 0 04-30
235 데몬과 같은 플 Magic ISO 추천 [3] 정원식 6530 0 04-27
234 [re] 데몬과 같은 플 Magic ISO 추천 [1] 정원식 5761 0 04-30
233 애니콜pc매니져 윈7 64비트에서 안 될 경우 [3] 윤지현 6392 0 04-19
232 윈도우7 7106 kor 아이팝다운로드큐 실행방법 [4] 김윤성 8062 0 04-18
231 윈도우 7에서 'Daemon Tool lite' 설치 & 사용하기 [5] 그러나 10802 0 04-10
230 x64에서 jvm문제 해결 [1] bluespy 6128 0 03-30
229 Windows7 Zip&Cab folder기능 off 김영조 7452 0 03-24
228 Windows 7 7057 desktop.ini 문제 해결 방법 [6] 19150 0 03-14
» desktop.ini 복구 + 속성 지정 배치 파일 [1] 12482 0 03-15
226 7048, 아래한글 글자겹침 문제 해결 방법 [3] 보리쌀 10354 0 03-14
225 윈도우7 에서 v3lite 사용하기 [2] 주형준 8625 0 03-13
224 문제없는 Windows7 용 ATI 까다로운리스트 설치법 [2] 함정훈 7526 0 03-01
XE1.11.6 Layout1.4.8