jeudi 19 janvier 2012

Creating a folder on fileSystem dynamics ax

To check folder existence you can use WinApi::pathExists,
to create one WinApi::createDirectory or WinApi::createDirectoryPath:
str path = 'C:\\tmp\\aFolder';
;
if (!WinApi::pathExists(path))
{
WinApi::createDirectoryPath(path);
}

Aucun commentaire:

Enregistrer un commentaire