DBWExtFromFileName

<< Click to Display Table of Contents >>

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

DBWExtFromFileName

Description

Retrieves the only extension from the file name

Syntax

Function DBWExtFromFileName(FullFileName)

Parameters

FullFileName

is the entire (comprehensive of all directories) file name

Return Values

A string containing the only extension of the file

Example

FullFileName = "c:\temp\test.sldasm"
fileextension = DBWExtFromFileName(FullFileName)
msgbox fileextension 'the output will be sldasm (without dot)