CreateSites.bat
for /f "skip=1 tokens=1-4" %%a in (sites.txt) do @stsadm -o createsite -url http://server/sites/%%a -sitetemplate STS#1 -owneremail %%b -ownerlogin %%c -title %%dsites.txt
for /f "skip=1 tokens=1-4" %%a in (webs.txt) do @stsadm -o createweb -url http://server/%%a -sitetemplate STS#1 -title %%d
pause
URL OwnersEmail OwnerLogin TitleWebs.txt
Site01 administrator@company.com administrator SiteNo1
Site02 administrator@company.com administrator SiteNo2
Site03 administrator@company.com administrator SiteNo3
Site04 administrator@company.com administrator SiteNo4
URL TitleArticle:
Web01 WebName1
Web02 WebName2
Web03 WebName3
Web04 WebName4
http://www.robvanderwoude.com/ntfortokens.html
http://www.geocities.com/rick_lively/MANUALS/COMMANDS/F/FOR_F.HTM
0 comments:
Post a Comment