void MoveFilesFromFoldertoAnotherFolder()
{
FilenameOpen fileNameOpen;
DialogField dialogFileName;
Dialog dialog;
FileName DestinationPath;
FileIOPermission FileIOPerm;
#File
DestinationPath = @filePathText + countingId;
WinAPI::createDirectoryPath(DestinationPath);
// MoveFile – The Original File won’t be available once it’s moved into destination path
WinAPI::copyFile(@filePath + ‘\\’ + fileNameText + FileType, @DestinationPath + ‘\\’ + fileNameText + FileType);
WinAPI::deleteFile(@filePath + ‘\\’ + fileNameText + FileType);
/*FileIOPerm = new FileIOPermission(@filePath + ‘\\’ + fileNameText + FileType,’w’);
FileIOPerm.Demand();
System.IO.File::Delete(@filePath + ‘\\’ + fileNameText + FileType);*/
}