[thelist] ASP FileSystemObject
Salvatore Palmisano
spalmisano at usashs.com
Wed Jan 30 12:17:02 CST 2002
Put this line right above Dim objFSO:
On Error Resume Next
This'll ignore the error thrown when the objFSO.FileExists(strPath) = False
evaluates to NULL if the file doesnt exist.
.Salvatore
-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Chris Marsh
Sent: Wednesday, January 30, 2002 1:01 PM
To: thelist at lists.evolt.org
Subject: [thelist] ASP FileSystemObject
Dear all
I am trying to test for the existence of a text file on my server, and
creating it if it does not already exist using ASP. The code I am using is
posted below. With this code, my browser just seems to hang when I click on
the page in question if the file does not exist, otherwise it is fine. I am
running Win2kPro, IIS5. Any help would be much appreciated.
Regards
Chris Marsh
More information about the thelist
mailing list