DBWCreateDirDBWServer

<< Click to Display Table of Contents >>

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

DBWCreateDirDBWServer

Description

Create a directory path as specified in the function arguments;
in case DBWServer is running on the machine, it assigns the OWNERSHIP folder attribute to the DBWServer login personality.

Syntax

Function DBWCreateDirDBWServer(strPath, blnSave)

 

Parameters

strPath

is the directory to create

blnSave

is a Boolean to specify the creation of the empty file:
if it is set to TRUE, it will be created an empty file named Tscreate.dir inside each directory in strPath

 

Return Values

TRUE

if the directory path has been regulary created

FALSE

if it has occurred some problems

 

See also

DBWCreateDir

 

Example

pathtocreate = "c:\dirone\dirtwo\dirthree\"
response = DBWCreateDirDBWServer(pathtocreate,TRUE)
if response = TRUE then
 msgbox "All right!"
else
 msgbox "Some problems! Directories weren't created."
end if