I’ve written a script that exports records from a database and creates an XML file from those records. The script works fine if I’m creating the file in that websites directory, but if I want to create it else where on that server it won’t write. Can anyone tell me what I’m doing wrong?
[COLOR=”Red”]Works:
[CODE]
Set strCreate = fso.CreateTextFile(server.mappath(“/Exported Files/File.xml”), true)
[COLOR=”Red”]Doesn’t Work:
[CODE]
Set strCreate = fso.CreateTextFile(server.mappath(“D:Websites/Site2/Exported Files/File.xml”), true)