I have some code which uses Navision RENAME and file.COPY commands to process ASCII text files. When running on a LAN or WAN, the speed of these commands is quite acceptible, but when I run Navision in Citrix over the Internet, these command take ages (1 minute for 1K byte file!) when the file.COPY command is copying from a local PC to the server over the Internet (for example). Navision 3.01B.
Example coding is:
IF COPY(ptxtSourceFile, ltxtArchiveFile) THEN
rbooCopiedOK := TRUE;
IF NOT RENAME(grecLocation.“MCL-Net Data File”, ptxtRenamedFile) THEN
I am also using SHELL to execute the DOS DIR command on a folder on the local client PC, which is over the Internet from the server in which Navision is running. This is really slow (sometimes 1 or 2 minutes) E.G:
ltxtListFileNames := ‘V:\TempList.fil’;
ltxtDOSCommand := 'dir ’ + ptxtArchiveFileBase + '* > ’ + ltxtListFileNames;
lintReturnCode := SHELL(‘cmd.exe’, ‘/c’, ltxtDOSCommand);
Does anyone know a way of speeding up this processing?