//較常用的方法:TPath.GetTempPath; {獲取臨時(shí)文件夾路徑}TPath.GetTempFileName; {獲取一個(gè)臨時(shí)文件名}TPath.GetPathRoot(); {提取盤(pán)符, 如: c:\}TPath.GetDirectoryName(); {提取路徑}TPath.GetFileName(); {提取文件名}TPath.GetExtension(); {提取擴展名}TPath.GetFileNameWithoutExtension(); {提取無(wú)擴展名的文件名}TPath.ChangeExtension(); {更換擴展名}TPath.DriveExists(); {檢查路徑中的驅動(dòng)器是否存在}TPath.GetFullPath(); {根據相對路徑給出全路徑}TPath.HasExtension(); {判斷是否有擴展名}TPath.IsPathRooted(); {判斷是否是絕對路徑}TPath.Combine(); {結合路徑}TPath.GetRandomFileName; {產(chǎn)生一個(gè)隨機文件名}TPath.GetGUIDFileName(); {用于產(chǎn)生一個(gè)唯一的文件名, 布爾參數決定名稱(chēng)中是否包含 -}TPath.IsValidPathChar(); {判斷給定的字符是否能用于路徑名}TPath.IsValidFileNameChar(); {判斷給定的字符是否能用于文件名}//不常用的方法TPath.HasValidPathChars();TPath.HasValidFileNameChars();TPath.GetExtendedPrefix();TPath.IsExtendedPrefixed();TPath.IsUNCRooted();TPath.IsDriveRooted();TPath.IsUNCPath();TPath.MatchesPattern();TPath.GetInvalidFileNameChars;TPath.GetInvalidPathChars;TPath.GetAttributes();TPath.SetAttributes();//屬性, 獲取在不同平臺下的各種路徑分隔符, 都是只讀的. TPath.AltDirectorySeparatorChar; {Windows 下是 "\"}TPath.AltDirectorySeparatorChar; {Windows 下是 "/"}TPath.ExtensionSeparatorChar; {Windows 下是 "."}TPath.PathSeparator; {Windows 下是 ";"}TPath.VolumeSeparatorChar; {Windows 下是 ":"}聯(lián)系客服