GetName Method


GetName Method

Location

My.Computer.FileSystem.GetName

Syntax

     Dim result As String = My.Computer.FileSystem.GetFileName(path) 


path (required; String)

The path to be examined

Description

The GetName method examines a valid filename path and returns only the filename portion, with all drive letters, folders, and directories removed.

Usage at a Glance

The original path must be correctly formatted, but it does not need to refer to an actual file on the file system.

Related Framework Entries

  • Microsoft.VisualBasic.MyServices.FileSystemProxy.GetName Method

  • Microsoft.VisualBasic.FileIO.FileSystem.GetName Method

  • System.IO.Path.GetFileName Method

See Also

CombinePath Method, FileSystem Object, GetParentPath Method




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