
Rnd Function | 427
The Language
Reference
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
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
Rnd Function
Class
Microsoft.VisualBasic.VBMath
Syntax
Dim result As Single = Rnd[(number)]
number (optional; Single)
The pseudorandom-number generator seed value. The following list describes
how the
Rnd function interprets number.
Number Rnd generates
Negative The same ...