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

 

JScript FileSystemObject Object GetAbsolutepathname Method

Returns a complete and unambiguous path from a provided path specification.

Syntax: JScript FileSystemObject Object GetAbsolutepathname Method

object.GetAbsolutepathname(pathspec)

Arguments: JScript FileSystemObject Object GetAbsolutepathname Method

object

The name of a FileSystemObject object. Required.

pathspec

The path specification to change to a complete and unambiguous path. Required.

Remarks: JScript FileSystemObject Object GetAbsolutepathname Method

A path is complete and unambiguous if it provides a complete reference from the root of the specified drive. A complete path can only end with a path separator character (\) if it specifies the root folder of a mapped drive.

Assuming the current directory is c:\mydocuments\reports, the following table illustrates the behavior of the GetAbsolutepathname method.

pathspec

Returned path

"c:"

"c:\mydocuments\reports"

"c:.."

"c:\mydocuments"

"c:\\\\\\"

"c:\"

"c:*.*\\may97"

"c:\mydocuments\reports\*.*\may97"

"region1"

"c:\mydocuments\reports\region1"

"c:\\..\\..\\mydocuments"

"c:\mydocuments"

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