unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Types, FileNameUnit, StringListUnit, uses_end; type TForm18 = class(TForm) Button1: TButton; Memo1: TMemo; procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form18: TForm18; implementation uses testFileNameUnit; {$R *.dfm} procedure TForm18.Button1Click(Sender: TObject); var I: Integer; EnvStrs: TStringDynArray; begin testGetLongFileName; testGetShortFileName; testCheckUNCPath; testCheckDrivePath; testFileDirectoryExists; testExtractFileDrive; testCheckFileFolderPath; testPathLevel; testCutPathLevel; testTrailingPathDelimiter; testGetAbsolutePathFromRelativePath; testGetRelativePathFromAbsolutePath; Memo1.Lines.Clear; StringArrayToStrings(GetEnvironmentStringArray, Memo1.Lines); Memo1.Lines.Add(''); Memo1.Lines.Add(ReplaceEnvironmentVariableNameToValue('%APPDATA%\test')); Memo1.Lines.Add(ReplaceEnvironmentVariableNameToValue('%HOMEPATH%\test')); end; end.