• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 9. Microsoft's Scripting Engine ... > FileSystemObject.DeleteFile()

FileSystemObject.DeleteFile()

JScript3.0+syntax

							filesystemobject.DeleteFile(filename, force)

Description

The DeleteFile() method is used to delete an existing file. An instance of the FileSystemObject is created, which uses the DeleteFile() method to remove the file testing.txt. This method takes two parameters. The first parameter, filename, is a string specifying the name of the file to delete, while force is a Boolean value indicating whether a file that has read only permissions can be deleted.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint