Options

Creating a Folder if it doesn't already exist?

erugalathaerugalatha Member Posts: 120
Hello,

How do I check if a folder exists and if it doesn't create it?

Currently I was trying:

IF NOT CREATE(fso,FALSE) THEN EXIT;
XMLFilePath := 'C:\Users\XMLDPS\SampleFiles\';
ok := fso.FolderExists(XMLFilePath);
CLEAR(fso);

but how do I then create the folder if it's not there?

Comments

Sign In or Register to comment.