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
Post a Comment