Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

VBScript FileSystemObject Object GetFileName Method

Returns the last component of a specified path that is not part of the drive specification.

Syntax: VBScript FileSystemObject Object GetFileName Method

object.GetFileName(pathspec)

Arguments: VBScript FileSystemObject Object GetFileName Method

object

The name of a FileSystemObject. Required.

pathspec

The path (absolute or relative) to a specific file. Required.

Remarks: VBScript FileSystemObject Object GetFileName Method

The GetFileName method returns a zero-length string ("") if pathspec does not end with the named component.

Note

The GetFileName method works only on the provided path string. It does not attempt to resolve the path, nor does it check for the existence of the specified path.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.