J
jwallison
XPSp1/IIS 5.1
What am I doing wrong? The following code just hangs in asp page at
OpenTextFile() - and inet service manager just hangs if I try to unload app
at
this point -
<script runat="server" language="VBScript" >
Function JobList
filename = "privdata/curjobs.txt"
mappedname = Server.MapPath(filename)
Set fso = Server.CreateObject("Scripting.FileSystemObject")
if not fso.FileExists(mappedname) then
JobList = "Please check again later."
else
Set f = fspenTextFile(mappedname)
JobList = f.ReadAll()
Set f = Nothing
end if
Set fso = Nothing
end function
</script>
The mappedname does point to the correct absolute path location (a virtual
dir under "documents and settings").
--
Regards,
Jim Allison
(e-mail address removed)
(de-mung by removing '.1')
What am I doing wrong? The following code just hangs in asp page at
OpenTextFile() - and inet service manager just hangs if I try to unload app
at
this point -
<script runat="server" language="VBScript" >
Function JobList
filename = "privdata/curjobs.txt"
mappedname = Server.MapPath(filename)
Set fso = Server.CreateObject("Scripting.FileSystemObject")
if not fso.FileExists(mappedname) then
JobList = "Please check again later."
else
Set f = fspenTextFile(mappedname)
JobList = f.ReadAll()
Set f = Nothing
end if
Set fso = Nothing
end function
</script>
The mappedname does point to the correct absolute path location (a virtual
dir under "documents and settings").
--
Regards,
Jim Allison
(e-mail address removed)
(de-mung by removing '.1')