![]() |
Wandlung %SystemRoot%
Hi,
Ich würde gerne wissen, wie %SystemRoot% zu einem "absoluten Pfad" gewandelt wird? z.B. C:\WINNT\System32 Mit freundlichen Gruß Tom |
Re: Wandlung %SystemRoot%
Mal schnell dahergetippt:
Delphi-Quellcode:
var aString: string;
begin SetLength(aString,MAX_PATH); ExpandEnvironmentStrings('%SystemRoot%',PChar(aString),MAX_PATH - 1); SetLength(aString,StrLen(PChar(aString))); ShowMessage(aString); end; |
Re: Wandlung %SystemRoot%
|
Re: Wandlung %SystemRoot%
Zumindest war ich auf dem richtigen Weg :zwinker:
|
Re: Wandlung %SystemRoot%
Danke :)
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 03:45 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz