Creates a folder on the hard drive.
FUNCTION CreateFolder(path : STRING): BOOLEAN;def vs.CreateFolder(path):
return BOOLEAN| Name | Type | Description |
|---|---|---|
| path | STRING |
bResult := CreateFolder (Concat(Copy(ActXMLFilePath,1,LenXLMFilePath-1)));
result := WriteXMLFile(hXML, -1, Concat(ActXMLFilePath,kXMLFileName));
END {Default File IS PRESENT and contains at least 1 entry}
ELSE
IF (OldFldrRes = 0)&((OldBxDataTtl>0)|(OldBmpDataTtl>0)) THEN {Old File IS PRESENT and contains at least 1 entry}
bResult := CreateFolder (Concat(Copy(ActXMLFilePath,1,LenXLMFilePath-1)));
result := WriteXMLFile(hXML, -1, Concat(ActXMLFilePath,kXMLFileName));import vs
# Creates a folder on the hard drive.
path = 'C:/Temp'
ok = vs.CreateFolder(path)
if ok:
vs.Message('CreateFolder succeeded')
else:
vs.Message('CreateFolder failed')Availability: from Vectorworks 2014