RmDir Procedure


RmDir Procedure

Class

Microsoft.VisualBasic.FileSystem

Syntax

     RmDir  (path) 


path (required; String)

The directory to be deleted

Description

The RmDir procedure removes an empty directory from a drive.

Usage at a Glance

  • path can be a relative or absolute path, either of a local or remote directory.

  • If the directory contains any files or subdirectories, an error occurs.

  • The directory is permanently deleted; it is not placed in the Recycle Bin. Visual Basic 2005 includes a new My.Computer.FileSystem.DeleteDirectory method that includes an option for the Recycle Bin.

  • The RmDir procedure only deletes empty directories. Visual Basic 2005 includes a new My.Computer.FileSystem.DeleteDirectory method that includes an option to delete all subordinate items.

  • Use the Kill procedure to delete files.

Version Differences

Visual Basic 2005 includes a My.Computer.FileSystem.DeleteDirectory method that provides similar functionality but with a few additional options.

See Also

Kill Procedure, MkDir Procedure




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net