用批处理建立网站目录
作者:cmscn 日期:2009-05-11
@echo off
set name=
set/p name=请输入用户名:IUSR_
set password=
set/p password=请输入该帐号密码:
net user IUSR_%name% %password% /add /passwordchg:no /expires:never
net localgroup Users IUSR_%name% /delete
net localgroup guests IUSR_%name% /add
netuser IUSR_%name% /pwnexp:y
md E:\wwwroots\%name%\
md E:\wwwroots\%name%\databases
md E:\wwwroots\%name%\logfiles
md E:\wwwroots\%name%\wwwroot
echo y|cacls "E:\wwwroots\%name%" /e /g IUSR_%name%:c
pause
评论: 0 | 引用: 0 | 查看次数: 540
发表评论