DBWFolderExists

<< Click to Display Table of Contents >>

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

DBWFolderExists

Description

Check the existence of a folder.

Syntax

Function DBWFolderExists(Filename)

Parameters

Folder path

It is the path to check existence of

Return Values

The function assumes value of

TRUE

If the folder exists

FALSE

otherwise

Example

path="c:\temp\" 'the path is accepted with or without last backslash
if DBWFolderExists(path) then
 DBWmsgbox "The file exists!"
else
 DBWmsgbox "Cannot find the specified path."
end if