DBWDirNameFromFullName

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Library Reference > File >

DBWDirNameFromFullName

Description

Retrieve the directory name from the full (with the entire path) file name

Syntax

Function DBWDirNameFromFullName(FullFileName)

Parameters

FullFileName

is the entire path (comprehensive of directories)

Return Values

A string containing the directory name of the document

Example

fullname = "c:\dirone\dirtwo\dirthree\test.sldasm"
dirname = DBWDirNameFromFullName(fullname)
DBWMsgBox dirname
' it prints "c:\dirone\dirtwo\dirthree\"