ASP Programming

[ Contents | Search | Post | Reply | Next | Previous | Up ]

Re: Checking for File Existance

From: davkline77@yahoo.com
Date: 4/18/00
Time: 2:53:42 PM

Comments

Here's a solution:

'do the line: On Error Resume Next

'then try to open the file: myFileSystemObject.OpenTextFile("C:\autoexec.bat")

'on the next line, check Err.number: if err.number = 0 then 'file exists else 'file doesn't exist end if

Last changed: April 18, 2000