FILE_PathSplit
<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > File > FILE: functions working on files > FILE_PathSplit |
Description
Split a file name string into its basic parts and returns a specific part giving the part equate.
Syntax
s = FILE_PATHSPLIT(FileName, Part)
Returns
String.
Parameters
Name |
Type |
Optional |
Meaning |
FileName |
String |
No |
Name of the file |
Part |
Number |
No |
The following equates can be used to extract path parts depending on the below rules:
%Path_RootPathFileExt or %Path_RootPathProgExt %Path_RootPathFile or %Path_RootPathProg %Path_RootPath %Path_Root %Path_FileExt %Path_File %Path_Ext
Standard Paths _______________Path____________ | | Root | File_ Ext | | || | | | d:\program files\folder1\folder2\program.exe
UNC Paths _______________Path__________ |____Root_____ | File_ Ext | | || | | | \\server\share\folder1\folder2\program.exe |
Remarks
Restrictions
See also
Examples