Page 1 of 1

Register SYSTEM -> System

Posted: Tue Oct 18, 2016 10:55 pm
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

Re: Register SYSTEM -> System

Posted: Tue Oct 18, 2016 11:21 pm
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