August 1999
Intermediate to advanced
1488 pages
72h 53m
English
filesystemobject.DeleteFolder(foldername, force)
The DeleteFolder() method is used to remove an existing folder and all its contents. This method takes two parameters. The first parameter, foldername, is a string specifying the name of the folder to delete, while force is a Boolean value indicating whether a file that has read only permissions can be deleted.
Listing 9.76 shows how the DeleteFolder() method is used. An instance of the FileSystemObject is created, which uses the DeleteFolder() method to remove the folder newtmp.
<html> <body> <script language="JScript"> <!-- Hide // function deletes the folder "newtmp" function ... |
Read now
Unlock full access