Skip to content

Instantly share code, notes, and snippets.

View rwblackburn's full-sized avatar

Robert Blackburn rwblackburn

View GitHub Profile
@rwblackburn
rwblackburn / Create list of *.js fils in subfolders
Created August 2, 2013 20:29
Windows batch file script which will loop over subfolders and create a list of the *.js files in them. Assumes the script is in a /build folder, and the sub-folders are in a /js folder along side the /build folder (like one finds in the HTML5BoilerPlate project).
SET Files=
FOR /D %%d IN (../js/*) do (
IF %%d NEQ test IF %%d NEQ vendor (
FOR %%f IN (../js/%%d/*.js) DO SET Files=!Files! ../js/%%d/%%~nxf
)
)