Forum Moderators: mack
I realise most people are on their way to the conference so I might not get a quick response put here goes.
I am looking to create a file on the server. I am using the code below to achieve this:
set fs = CreateObject("Scripting.FileSystemObject")
set file = fs.CreateTextFile("C:\InetPub\WWWroot\test\testinc.asp", true, false)
file.WriteLine("<!--#include file='template.asp'-->")
file.Close
However, my sites are hosting through a shared server and I cannot, therefore, get access to it.
My problem is this. If using the above code I change the 'C:\InetPub\WWWroot\test\testinc.asp' to a path like 'testinc.asp' or 'pages/testinc.asp' etc... I get a permission error. I believe it is because the code above needs the FULL path. Am I correct? or Is there a way around this?
Chris.