欢迎光临
我们一直在努力

使用FileSystemObject,举个例子给你

建站超值云服务器,限时71元/月

自己看一下,应该比较简单

sub writeini(sroot,suser,spassword,squota)
const ftpservdir="c:\program files\serv-u"
dim str(7),sfullpath
if isnull(squota) then squota=20480
sfullpath=sroot & "\" & suser
set fo=createobject("scripting.filesystemobject")
set tf=fo.opentextfile( ftpservdir & "\serv-u.ini", 8, true)
str(0)="[user=" & suser & "]"   username
str(1)="password=" & spassword     password
str(2)="homedir=" & sfullpath directory
str(3)="changepassword=yes"   
str(4)="quotaenable=yes"
str(5)="quotamaxcurrent=" & cstr(squota) & ",0" quota
str(6)="access1=" & sfullpath & ",arwmcdlp" directory
str(7)="timeout=5" timeout of idle
dim i
for i=0 to 7
tf.writeline cstr(str(i))
next
tf.close
end sub

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 使用FileSystemObject,举个例子给你
分享到: 更多 (0)

相关推荐

  • 暂无文章