Say I have the following files in a directory
- /file.js
- /file2.min.js
- /file1.js
how can I write a package for the loop so that all the ".js" files are compiled, but the ".min.js" are not, and the output of the .js filename can be changed to add .min.js
eg:
for %%A IN (*.js) DO @echo %%A "->" %%~nA ".min.js"
would ideally give the following and note that file2.min.js does not appear on the left.
- file.js β file.min.js
- file1.js β file1.min.js
Thank you for your help.
Lukie
source share