Last active
September 24, 2015 19:09
-
-
Save NobleUplift/d0524f901994ecb5e46d to your computer and use it in GitHub Desktop.
Recursively system hide the same file in a hierarchy. Useful for Folder.jpg and AlbumArt.jpg.
This file contains hidden or 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 | |
SET DIRECTORY=%1 | |
SET HIDE=%2 | |
FOR /R %DIRECTORY% %%F IN (.) DO ( | |
IF EXIST %%F\%HIDE% ( | |
ATTRIB +S +H "%%F\%HIDE%" | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment