Skip to content

Instantly share code, notes, and snippets.

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 rwblackburn/6143197 to your computer and use it in GitHub Desktop.
Save rwblackburn/6143197 to your computer and use it in GitHub Desktop.
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
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment