How to pass array of argument to batch file? -


i having batch file called formalbuild.bat ,it take parameter name called componentname.

for ex. build different components below.

    formalbuild.bat servicecomponent     formalbuild.bat datamodelcomponent     formalbuild.bat                  ...                 ...     formalbuild.bat somexyzcomponent 

is possible create array of component name , pass 1 one component batch file build?

as component name changes, use for loop or better for/f loop.

for %%c in (servicecomponent datamodelcomponent somexyzcomponent ) (     call formalbuild.bat %%c ) 

if list of components long split them multiple lines

for %%c in (servicecomponent  datamodelcomponent component3 ... component_n somexyzcomponent ) (     call formalbuild.bat %%c ) 

Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -