2.5 ParsedName Object

Features:

2.5.1 Extension property

Returns the extension of a file.

Syntax

Object.Extension

Type

String.

Attributes

Read-only.

Example

See sample in Example.

See Also

2.5.2 Name property

Returns the name of a file or directory minus its extension.

Syntax

Object.Name

Type

String.

Attributes

Read-only.

Example

See sample in Example.

 

2.5.3 Path property

Returns the full path of the file or directory.

Syntax

Object.Path

Type

String.

Attributes

Read-only.

Example

See sample in Example.

See Also

2.5.4 Server property

Returns the name of the server in which the volume resides.

Syntax

Object.Server

Type

String.

Attributes

Read-only.

Example

See sample in Example.

See Also

2.5.5 Volume property

Returns the name of the volume in which the file resides.

Syntax

Object.Volume

Type

String.

Attributes

Read-only.

Example

This example returns the volume name, server name, path, name and extension of the file jetson.bas.

Set filemgr = Createobject("ucx:NWFileMgr") 
Set pObj = filemgr.Parse("Sys:NSN\util\jetson.bas") 
Print(pObj.Volume)
Print(pObj.Server)
Print(pObj.Path)
Print(pObj.Name)
Print(pObj.Extension)

See Also