간단하게 ASP는 정적 홈페이지 샘플 코드를 생성합니다
<%
Dim objxmlhttp, binfiledata, objadostream
set objxmlhttp = server.createobject (microsoft.xmlhttp)
objxmlhttp.open get, http : //&request.servervariables (http_host) 및/index1.asp, false
objxmlhttp.send ()
binfiledata = objxmlhttp.responsebody
set objadostream = server.createobject (adodb.stream)
objadostream.type = 1
objadostream.open ()
objadostream.write (binfiledata)
objadostream.savetofile server.mappath (../ index.html), 2
objadostream.close ()
objadostream = 아무것도 설정하지 않습니다
objxmlhttp = 아무것도 설정하지 않습니다
response.write <script language = javaScript> alert ( '홈 페이지 생성이 완료되었습니다!');
%>