Created
April 7, 2019 12:24
-
-
Save larshb/368fa1ce43adec67f1d0f0e96aa8ede7 to your computer and use it in GitHub Desktop.
Batch script to customize windows directories with a cosmetic name and icon.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
echo The script will create a desktop.ini file and make it and the icon file hidden. | |
echo Directory to be customized: %cd% | |
set /p name="Name (overlayed).....: " | |
set /p desc="Description (tooltip): " | |
set /p icon="Icon file (.ico).....: " | |
set /p confirmation=Ready to apply? [y]es | |
if /i "%confirmation%" neq "y" goto CANCELLED | |
:CUSTOMIZE | |
attrib +s . | |
attrib -s -r -h desktop.ini | |
echo [.ShellClassInfo] > desktop.ini | |
echo LocalizedResourceName=%name% >> desktop.ini | |
echo ConfirmFileOp=0 >> desktop.ini | |
echo IconFile=%icon% >> desktop.ini | |
echo IconIndex=0 >> desktop.ini | |
echo InfoTip=%desc% >> desktop.ini | |
attrib +s +r +h desktop.ini | |
attrib +s +r +h %icon% | |
echo Folder customized! | |
goto DONE | |
:CANCELLED | |
echo Cancelled customization. | |
:DONE | |
pause | |
@echo on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment