OpenTextFile just hangs

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 = fso_OpenTextFile(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')
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top