Fritzbox refuses rename

Fritzbox refuses rename

December 3, 2020 Uncategorized 0

There are things that should not exist. And that's why IT is always exciting and new.
After an update to Fritz.OS 7.21 (and presumably SMB3 activated with it) Navision and also the command line refused the command Rename.
However, I needed this in order to store a processed file with a new identifier (i.e. rename it). In this way, my Navision avoids an order file being read in again by the customer / salesperson (sales representative). However, the file is renamed and not deleted so that it can be checked again later in an emergency to see what was really in it. Security is the mother of the china box and that of the programmers.

Navision / Business Central File.rename returned: The operating system allows you to access the file AgeFilename NewFilename not. Obviously a single file name was displayed, but it consisted of the two (Alt+New) file names. Navision was therefore no longer able to rename the imported file.

Try: move the FTP share to a USB stick, create new directories, create a new user on the Fritz.Box especially for this purpose, delete the saved Windows login data... all useless, no change.

With the file explorer and via internet access the renaming worked without any problems!

And: Another file („Setup.tmp“) in the same folder could be renamed to Setup.txt with Navision / Business Central file.rename without any problems! The files to be renamed did not contain any special characters either.

Check: On the same machine in the DOS command line with the path\OldFile.bst newFile.bst.old: Access denied. So it had nothing to do with Navision itself.

It probably has something to do with the fact that these files came to the Fritzbox via FTP. Unfortunately, the Fritzbox is not very forthcoming about the actual rights to a file.
So: Neither Navision file.Rename nor dos.rename (ren) worked on the Fritzbox router. And this despite the fact that I always advertise this device because of its simplicity and unbreakability.

Funnily enough, I was able to open the same file in DOSbox as well as in Navision with File.copy and then duplicate the old one with file.delete delete, which is then nothing more than a file.rename was.
This meant that the customer could once again use his mobile ordering program for his sales representatives and end customers as normal: the order record.

Leave a Reply