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

 

JScript FileSystemObject Object DeleteFile Method

Deletes a specified file.

Syntax: JScript FileSystemObject Object DeleteFile Method

object.DeleteFile ( filespec[, force] );

Arguments: JScript FileSystemObject Object DeleteFile Method

object

The name of a FileSystemObject object. 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: JScript 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.