Skip to content

Instantly share code, notes, and snippets.

@srz-zumix
Created October 27, 2015 03:52
Show Gist options
  • Save srz-zumix/42121dc8dbabc651dc81 to your computer and use it in GitHub Desktop.
Save srz-zumix/42121dc8dbabc651dc81 to your computer and use it in GitHub Desktop.
@echo off
SET TARGET_KEY=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers
SET TARGET_KEY_WOW64=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\explorer\ShellIconOverlayIdentifiers
rem call :dropbox %TARGET_KEY%
if not "%PROCESSOR_ARCHITECTURE%" == "x86" (
call :dropbox %TARGET_KEY_WOW64%
)
goto :EOF
:dropbox
call :modify "%~1\ DropboxExt1"
call :modify "%~1\ DropboxExt2"
call :modify "%~1\ DropboxExt3"
call :modify "%~1\ DropboxExt4"
call :modify "%~1\ DropboxExt5"
call :modify "%~1\ DropboxExt6"
call :modify "%~1\ DropboxExt7"
call :modify "%~1\ DropboxExt8"
goto :EOF
:modify
for /f "tokens=1,2,3" %%a in ('reg query "%~1" /ve') do (
if not "x%%c" == "x" (
rem @echo %%c
reg add "%~1" /f /ve /t REG_SZ /d "MANUALLY_EDITED_%%c" >NUL
)
)
goto :EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment