Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

VBScript FileSystemObject Object DeleteFile Method

Deletes a specified file.

Syntax: VBScript FileSystemObject Object DeleteFile Method

object.DeleteFile filespec[, force]

Arguments: VBScript FileSystemObject Object DeleteFile Method

object

The name of a FileSystemObject. Required.

filespec

The name of the file to delete. The filespec can contain wildcard characters in the last path component. Required.

force

A Boolean value that is True if files with the read-only attribute set are to be deleted; False (default) if they are not. Optional.

Remarks: VBScript FileSystemObject Object DeleteFile Method

An error occurs if no matching files are found. The DeleteFile method stops on the first error it encounters. No attempt is made to roll back or undo any changes that were made before an error occurred.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.