강좌 / 팁
desktop.ini 복구 + 속성 지정 배치 파일
2009.03.15 12:50
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
사실 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
댓글 [1]
-
bluespy 2009.03.16 23:19 감사합니다.