PDA

Click to See Complete Forum and Search --> : General....


turfbult
Jun 7th, 2001, 05:49 AM
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


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....


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

JoshT
Jun 7th, 2001, 06:01 AM
Just use the path that would be relative to where the ASP file is stored.

harsoni
Jun 7th, 2001, 01:20 PM
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:

harsoni
Jun 7th, 2001, 01:23 PM
See that \myweb\temp\ folder exits

Sonia
:rolleyes:

sail3005
Jun 8th, 2001, 12:46 AM
As, JoshT said, it would be easier to just use a relative path...