Skip to content

Instantly share code, notes, and snippets.


Robert Blackburn rwblackburn

View GitHub Profile
rwblackburn / Create list of *.js fils in subfolders
Created Aug 2, 2013
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).
View Create list of *.js fils in subfolders
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