August 1999
Intermediate to advanced
1488 pages
72h 53m
English
filesystemobject.FolderExists(foldername)
The FolderExists() method is used to determine whether or not a specified folder exists on the current system. This method takes foldername as its only parameter, which represents the name of folder to check.
Listing 9.80 shows an example of how to determine if the tmp folder exists.
<html>
<body>
<script language="JScript">
<!-- Hide
function checkfolder()
{
var myObject;
// Create an instance of the FileSystemObject
myObject = new ActiveXObject("Scripting.FileSystemObject"); // Check for the tmp folder if(myObject.FolderExists("c:\\tmp")){ alert("tmp Folder Exists"); } else { alert("tmp ... |
Read now
Unlock full access