Hello,
I have an ActiveX-DLL (using VB-script) that creates some files.
When I use a direct path ("c:\wwwroot\...), the script works fine (see
below)
But if I use the Server.MapPath() there is an error: "Object required"
When I use the code in an ordinary .asp-file the Server.MapPath works fine.
' ----- Create the .fil-file
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.CreateTextFile("c:\inetpub\wwwroot\catalog\" & temp &
"\" & fname & ".fil", True)
' Set f = fs.CreateTextFile(Server.MapPath(temp & "\" & fname &
".fil", True))
Anyone know what I can do?
Regards,
/Mikael S