-
General....
Hello,
I dynamically create a html file through my asp webpage. I then want to save this page in a directory called "temp". Now, locally it works fine, I just use
Code:
set fso = createobject("scripting.FileSystemObject")
set tf = fso.CreateTextFile("c:\temp\TestQuote.html",true)
How will I do this on my hosts server. They said I cannot use the string above, but must save it in my webspace.
All my files lie in "\myweb" on my hosts server.
Will I then do it like this....
Code:
set fso = createobject("scripting.FileSystemObject")
set tf = fso.CreateTextFile("\myweb\temp\testquote.htmll",true)
Are all the "\" and " etc etc there??
Any help please.
Thanks,
T
-
Just use the path that would be relative to where the ASP file is stored.
-
hi turfbult,
CODE
__________________________________________
set fso = createobject("scripting.FileSystemObject")
set tf = fso.CreateTextFile("\myweb\temp\testquote.htmll",true)
__________________________________________________
seems to me it works fine...try it out
Sonia:rolleyes:
-
See that \myweb\temp\ folder exits
Sonia
:rolleyes:
-
As, JoshT said, it would be easier to just use a relative path...