Re: Accessing text file
From: Santiago Crespo (screspo@cpcipc.org)
Date: 06/08/02
- Next message: Scott Stahlman [MS]: "RE: Windows 2000 server"
- Previous message: David Clausen: "SMTP Secuirty"
- In reply to: Simon: "Accessing text file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Santiago Crespo" <screspo@cpcipc.org> Date: Sat, 8 Jun 2002 05:36:54 -0300
try posting on an asp group
has nothing to do with security
"Simon" <sjr100@cambridge.org> wrote in message
news:uA32OwiDCHA.2096@tkmsftngp04...
> I have the following code. It runs in Windows 2000 Pro but not in XP Pro.
It
> finds the text file but hangs on the opentextfile command. I thought it
was
> a permissions problem so granted full access to Internet Anonymous
account,
> both in IIS and at the file system level. Still it hangs. Does anyone have
> any other ideas of what to try. Thanks Simon
>
> dim oFs, oFile, sInput
>
> sInput = server.MapPath ("products.txt")
>
> set oFs = server.CreateObject ("scripting.fileSystemObject")
> if oFs.FileExists (sInput) then
> Response.Write "File found"
> set oFile = oFs.OpenTextFile (sInput)
> else
> Response.Write "File not found"
> end if
>
> if isObject(oFile) then oFile.close
> set oFs = nothing
>
>
- Next message: Scott Stahlman [MS]: "RE: Windows 2000 server"
- Previous message: David Clausen: "SMTP Secuirty"
- In reply to: Simon: "Accessing text file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|