32. 11. 8. FileSystemObject.DeleteFolder() |
|
Syntax |
filesystemobject.DeleteFolder(foldername, force)
|
|
The DeleteFolder() method removes an existing folder and all its contents. |
foldername is a string specifying the folder name. |
force is a Boolean value indicating whether to delete a file with read only permissions. |
<html>
<body>
<script language="JScript">
<!--
function deleteFolder()
{
var myObject;
myObject = new ActiveXObject("Scripting.FileSystemObject");
myObject.DeleteFolder("c:\\newtmp");
}
-->
</script>
Delete Folder: "newtmp"
<form name="myForm">
<input type="Button" value="Click to Delete Folder" onClick='deleteFolder()'>
</form>
</body>
</html>
|
|