>Is there any simpler way to get a real path of a file or folder, even if the path, to start from, contains unfortunately uppercased parts? Filesystem object doesn't even have such a function, it keeps the casing as was passed to it.
>
>The one way I know is to use the 3rd parameter to adir(), which means recursively checking each level of the path and then reassembling it. Not that I don't have the time to do it, now I have, and (even worse) I have a strong deja vu, I think I already wrote such a function once but can't remember what I called it...
>
>Still, is there a simpler way?
FilesystemObject does not have a function but it has a property
local filename, fso, x
filename = upper('D:\tmp\NBB\2021\structure_be-fr-pfs-ci-2021-01-01.pdf')
fso = CreateObject("Scripting.FileSystemObject")
x= m.fso.GetFile(m.filename)
?m.x.Path
x = m.fso.Getfolder(justpath(m.filename))
?m.x.Path
Gregory