[thelist] newbie alert! Question about .asp-change and new question

lon.kraemer lwkraemer at earthlink.net
Tue Apr 24 12:36:45 CDT 2001


After the newFile= line put
response.write newFile
You'll see a problem

Server.Mappth will strip the last '/', so you'll need to put it back in thus

newFile=server.mappath("/InformationServices/CHS_Cookbook_Files") & "/" &
strName & ".txt"

Other than that, confirm proper permissions on the directory.

----- Original Message -----
From: "Janet Nabring-Stager" <jnabring at yahoo.com>
To: <thelist at lists.evolt.org>
Sent: Tuesday, April 24, 2001 9:31 AM
Subject: RE: [thelist] newbie alert! Question about .asp-change and new
question


> Part of my code is this:
> objConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
>
Source=d:\Inetpub\wwwroot\connections\InformationServices\CHS_Cookbook_Files
\CHS_Cookbook.mdb;"
> newFile=server.mappath("/InformationServices/CHS_Cookbook_Files/") &
> strName & ".txt"
> Set fstemp = server.CreateObject("Scripting.FileSystemObject")
> Set filetemp = fstemp.CreateTextFile(newFile, false)
> filetemp.WriteLine(strInstructions)
> filetemp.Close






More information about the thelist mailing list