CurDir Function


CurDir Function

Class

Microsoft.VisualBasic.FileSystem

Syntax

     CurDir([drive]) 


drive (optional; String or Char)

The letter of the drive (A to Z) from which to return the current directory

Description

The CurDir function returns the current directory of a particular drive or of the default drive.

Usage at a Glance

  • If no drive is specified or if drive is a zero-length string (""), CurDir returns the path for the current working (default) drive.

  • Since CurDir only considers the first letter of the drive string, it's not possible to supply a UNC path (such as \\ServerName\ShareName).

Version Differences

Visual Basic 2005 includes a My.Computer.FileSystem.CurrentDirectory property that provides related functionality.

See Also

ChDir Procedure, ChDrive Procedure, MkDir Procedure, RmDir 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