Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
strFileSource = Server.MapPath("deletethisfile.txt")
strFileDestination = Server.MapPath("FILECOPIED.txt")
strError="File is OK"
set fso = Server.CreateObject("Scripting.FileSystemObject")
if Not fso.FileExists(strFileSource) then
strError = "Error - Source file does not exist = " & strFileSource
else
Set f2 = fso.GetFile(strFileSource)
f2.Copy (strFileDestination)
fso.DeleteFile (strFileSource)
Set f2 = nothing
end if
Set fso = nothing
<html>
<head>
<title>New Page 1</title>
</head>
<body>
<%
strFileSource = Server.MapPath("deletethisfile.txt")
strFileDestination = Server.MapPath("FILECOPIED.txt")
strError="File is OK"
set fso = Server.CreateObject("Scripting.FileSystemObject")
if Not fso.FileExists(strFileSource) then
strError = "Error - Source file does not exist = " & strFileSource
else
Set f2 = fso.GetFile(strFileSource)
f2.Copy (strFileDestination)
fso.DeleteFile (strFileSource)
Set f2 = nothing
end if
Set fso = nothing
%>
file = <%=strFileSource%><br/>
Result = <%=strError%>
f2 = <%'=f2%>
</body>
</html>