Skip to content

Instantly share code, notes, and snippets.

@rustyJ4ck
Created February 3, 2018 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rustyJ4ck/e9e96039809b5ce6a664700f32453be8 to your computer and use it in GitHub Desktop.
Save rustyJ4ck/e9e96039809b5ce6a664700f32453be8 to your computer and use it in GitHub Desktop.
@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