ChrisQuick
Programmer
I've seen examples of using the FileSystemObject to reference a file on the server. For example:<br>
<br>
<%<br>
fs = Server.CreateObject("Scripting.FileSystemObject"<br>
auto = fs.GetFile("c:\some.bat"<br>
Response.Write(auto.size)<br>
%><br>
<br>
would printout the size of the some.bat file, assuming it existed. If the file did not exist, then you get an error.<br>
<br>
Question:<br>
<br>
How do you conditionally test for the existance of a file after creating your your object?<br>
<br>
Thanks
<br>
<%<br>
fs = Server.CreateObject("Scripting.FileSystemObject"<br>
auto = fs.GetFile("c:\some.bat"<br>
Response.Write(auto.size)<br>
%><br>
<br>
would printout the size of the some.bat file, assuming it existed. If the file did not exist, then you get an error.<br>
<br>
Question:<br>
<br>
How do you conditionally test for the existance of a file after creating your your object?<br>
<br>
Thanks