Register SYSTEM -> System

Post Reply
User avatar
DGDanforth
Posts: 1061
Joined: Tue Sep 17, 2013 1:16 am
Location: Palo Alto, California, USA
Contact:

Register SYSTEM -> System

Post by DGDanforth »

If I try to register a file with name SYSTEM.xxx it shows up as System.xxx

I have looked at the HostFiles source code and do not see any explicit case changing.
There is a call to WinApi.MoveFileW that has the form

Code: Select all

PROCEDURE MoveFileW (lpExistingFileName, lpNewFileName: WinApi.PtrWSTR): WinApi.BOOL;
but that seems unlikely to be the culprit.

The reason I want a file with name SYSTEM is again related to Gardens Point where the functionality of
the BlackBox SYSTEM has been changed.

I have created an incremental files backup tool which works correctly except for SYSTEM.xxx

-Doug
User avatar
DGDanforth
Posts: 1061
Joined: Tue Sep 17, 2013 1:16 am
Location: Palo Alto, California, USA
Contact:

Re: Register SYSTEM -> System

Post by DGDanforth »

Ah,
It seems that Windows retains the case of a file name even after it is deleted.
One must delete a file whose case is not what you want and *also* close the folder for
the destination drive. Upon reopening that folder one can drag and drop from the
source to the destination and maintain the case of the source file name.

So this issue has nothing to do with SYSTEM but rather how Windows retains file name case.

Sorry to bother you all.

-Doug
Post Reply