windows - echoing dynamically generated variable -


set css_folder_source=.\css set js_folder_source=.\js    %%a in (js, css ) (      if defined %%a_folder_source (         echo  %%%a_folder_source%%     ) ) 

i want read contents of both folders. don't know how dynamically generate folder_source names

use delayed expansion:

setlocal enabledelayedexpansion  ............ %%a in (js css) (     echo !%%a_folder_source! ) 

Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -