Created
February 3, 2018 21:15
-
-
Save rustyJ4ck/e9e96039809b5ce6a664700f32453be8 to your computer and use it in GitHub Desktop.
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 | |
SETLOCAL ENABLEDELAYEDEXPANSION | |
REM remove.pax.bat ./ PaxHeader | |
REM SET DIRECTORY=%1 | |
REM SET REMOVE=%2 | |
SET DIRECTORY=. | |
SET REMOVE=PaxHeader | |
FOR /R %DIRECTORY% %%F IN (.) DO ( | |
set z=%%F\%REMOVE% | |
IF EXIST !z!\NUL ( | |
RMDIR /S /Q !z! | |
echo !z! | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment