Re: Accessing text file

From: Santiago Crespo (screspo@cpcipc.org)
Date: 06/08/02


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



Relevant Pages

  • Re: Accessing text file from ASP
    ... It runs in Windows 2000 Pro but not in XP Pro. ... > dim oFs, oFile, sInput ... > if oFs.FileExists (sInput) then ... > set oFile = oFs.OpenTextFile ...
    (microsoft.public.windowsxp.security_admin)
  • Accessing text file from ASP
    ... It runs in Windows 2000 Pro but not in XP Pro. ... Still it hangs. ... dim oFs, oFile, sInput ... set oFs = server.CreateObject ...
    (microsoft.public.windowsxp.security_admin)
  • Accessing text file
    ... It runs in Windows 2000 Pro but not in XP Pro. ... Still it hangs. ... dim oFs, oFile, sInput ... set oFs = server.CreateObject ...
    (microsoft.public.inetserver.iis.security)