Skip to content

Instantly share code, notes, and snippets.

@djangofan
Created May 25, 2012 21:24
Show Gist options
  • Save djangofan/2790685 to your computer and use it in GitHub Desktop.
Save djangofan/2790685 to your computer and use it in GitHub Desktop.
Batch script to run a Groovy script over each file found in recursive subdirectories
@ECHO off
:: https://gist.github.com/2789163
del list.txt
del list.bak
dir /s /b arrest.xml > list.txt
::FOR /F "tokens=2,3* delims=^\" %%i in (list.txt) do (
:: ECHO %%i %%j %%k
::)
FOR /F "tokens=* delims=" %%i in (list.txt) do (
ECHO %%i
groovy.exe stripAttributes.groovy "%%i"
)
rename list.txt list.bak
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment