I'm currently trying to browse a network drive to attach some files to a mail.
Currently I'm using the DotNet System.Object and System.IO.Directory and System.Collections.Generic.List to find the filepaths in the following way:
SysObj := SysDir.GetFiles(DirectoryPath);
SysList := SysList.List;
FOR j:= 1 TO SysList.Count DO BEGIN
CurrentFile := FORMAT(SysList.Item(j-1));
Since only the NAV clients have access to the network drives in which the files exist, RunOnClient has to be set to true for these DotNet data type variables.
I want to move these files to a drive on the same server the NAV server runs on, but I can't simply use System.IO.Directory.Move(file1,file2), since the client won't have access to the server's drives.
Is there any smart way of going about this, since I can't set the File datatype to RunOnClient = true?
Thank you in advance.