[ Contents | Search | Post | Reply | Next | Previous | Up ]
![]()
From: davkline77@yahoo.com
Date: 4/18/00
Time: 2:53:42 PM
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
![]()