M
MDJ
Hi, haven't been on here for a while but used to help out with ASP queries,
hoping for a bit of guidance myself!
I've stripped down the code i'm having trouble with to the following,
basically I just want the code to duplicate a template file, i.e create a
new file from a template, when I run the code below on Windows 2000
Professional (IIS 5) the page never finishes executing and no file is
created, haven't done much with FileSystemObject before so don't know what's
going on. Can anyone point me in the right direction?
strTemplate =
Server.MapPath("..\environmental-health-issues\template.asp")
strNewFile = Server.MapPath("..\environmental-health-issues\newfile.asp")
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
Set F1 = FSO.GetFile(strTemplate)
F1.Copy(strNewFile)
Set F1 = nothing
Set FSO = nothing
Many Thanks,
Martin
hoping for a bit of guidance myself!
I've stripped down the code i'm having trouble with to the following,
basically I just want the code to duplicate a template file, i.e create a
new file from a template, when I run the code below on Windows 2000
Professional (IIS 5) the page never finishes executing and no file is
created, haven't done much with FileSystemObject before so don't know what's
going on. Can anyone point me in the right direction?
strTemplate =
Server.MapPath("..\environmental-health-issues\template.asp")
strNewFile = Server.MapPath("..\environmental-health-issues\newfile.asp")
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
Set F1 = FSO.GetFile(strTemplate)
F1.Copy(strNewFile)
Set F1 = nothing
Set FSO = nothing
Many Thanks,
Martin