Einzelnen Beitrag anzeigen

Benutzerbild von Stevie
Stevie

Registriert seit: 12. Aug 2003
Ort: Soest
4.012 Beiträge
 
Delphi 10.1 Berlin Enterprise
 
#10

AW: TDirectory.GetFiles und ('C:\Documents and Settings')

  Alt 20. Feb 2023, 15:23
Wenn man ein englisch/amerikannisches Windows hat, hat es auch einen "C:\Documents and Settings" reparse point.
Stimmt, die junction gibt es zwar, aber leider führt sie zumindest bei meinem Windows 10 ins nirgendwo:

Code:
C:\>cd "Documents and Settings"

C:\Documents and Settings>dir
 Volume in drive C is Windows
 Volume Serial Number is DA0A-6171

 Directory of C:\Documents and Settings

File Not Found

C:\Documents and Settings>
Und auch trotz FollowLink = True liefert TDirectory.GetAttributes eine Exception, da der intern aufgerufenen CheckGetAttributesParameters dieser Parameter herzlich egal ist.

Guckst du hier: https://superuser.com/questions/4583...es-it-point-to

Nur in Verbindung mit einem entsprechenden Unterordner bekommt man irgendwelche nützlichen Ergebnisse - z.b. wenn ich das hier mache:

Code:
C:\>cd "Documents and Settings"\sglienke

C:\Documents and Settings\sglienke>dir
 Volume in drive C is Windows
 Volume Serial Number is DA0A-6171

 Directory of C:\Documents and Settings\sglienke

17.02.2023  15:01    <DIR>         .
17.02.2023  15:01    <DIR>         ..
31.01.2023  10:37    <DIR>         .dotnet
02.02.2023  08:07    <DIR>         .nuget
11.01.2023  10:57    <DIR>         .templateengine
17.02.2023  15:01    <DIR>         .vscode
02.12.2022  08:33    <DIR>         3D Objects
02.12.2022  08:33    <DIR>         Contacts
20.02.2023  09:53    <DIR>         Desktop
23.01.2023  12:13    <DIR>         Documents
...
Stefan
“Simplicity, carried to the extreme, becomes elegance.” Jon Franklin

Delphi Sorcery - DSharp - Spring4D - TestInsight

Geändert von Stevie (20. Feb 2023 um 15:27 Uhr)
  Mit Zitat antworten Zitat