Reputation: 1
I have been trying to automate the process of migrating the IIS sites. But I am not able to loop through the sites using batch script. I want to loop through the output of the list sites command and pass the specific values from this to the next command like id and site name.
appcmd list sites /text:id --> this will give site id.
I want these sites ids to be used to create a zip file by appending the id to the name parameter which is also returned using appcmd command.
Can anyone help me out in this;
Upvotes: 0
Views: 162