Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Recursively system hide the same file in a hierarchy. Useful for Folder.jpg and AlbumArt.jpg.
@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
You can’t perform that action at this time.