<html>
<style type="text/css">
<!--
body,td,th {
font-family: Arial, Helvetica, sans-serif;
}
-->
</style>
<title>Exists and What Exists</title>
<body>
<%
<!--
Set fs=Server.CreateObject("Scripting.FileSystemObject")
If (fs.FileExists(server.mappath("/mmt/060214/vb03.asp")))=true Then
Response.Write("File 060214/vb03.asp exists.")
Else
Response.Write("File 060214/vb03.asp does NOT exist.")
End If
set fs=nothing
-->%>
<br>
<br>
<%
<!--
dim fs,fo,x
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder(server.mappath("\mmt\060214\"))
for each x in fo.files
'Print the name of all files in the test folder
Response.write(x.Name & "<br />")
next
set fo=nothing
set fs=nothing
-->
%>
<p> </p>
<h2>The FileSystemObject Object</h2>
<p>The FileSystemObject object is used to access the file system on the server. </p>
<p>This object can manipulate files, folders, and directory paths. </p>
<p>It is also possible to retrieve file system information with this object.</p>
<p> </p>
</body>
</html>