Navigation:  thinBasic Modules > File >

File Equates

Previous pageReturn to chapter overviewNext page

 

During module loading process, the following equates (constants) will be defined:

 

Equates used by DIR_List and DIR_ListArray:

Symbol

Meaning

%FILE_NORMAL

Normal files

%FILE_READONLY

Read only files

%FILE_HIDDEN

Hidden files

%FILE_SYSTEM

System files

%FILE_VLABEL

Volume label

%FILE_SUBDIR

Subdirectories

%FILE_ARCHIVE

Archive flag files

%FILE_ADDPATH

Will add full path to returned file name

 

The following equates are 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

 

The following equates are used as return values from FILE_Changed function:

 

%FILE_CHANGE_WildCardNotAllowed

%FILE_CHANGE_FileDoesNotExists

%FILE_CHANGE_FirstTimeChecking

%FILE_CHANGE_LastWriteTimeChange

%FILE_CHANGE_FileSizeChange

%FILE_CHANGE_SizeAndTimeChange

 

The following equates are used by FILE_GetVersion... functions:

 

%FILE_MAJORVERSION

%FILE_MINORVERSION

%FILE_BUILDVERSION

%FILE_REVISIONVERSION

 

Equates for FILE_SetDateTime, FILE_GetDate, FILE_GetTime functions

 

%DATE_TIME_FILE_CREATION

%DATE_TIME_LAST_FILE_ACCESS

%DATE_TIME_LAST_FILE_WRITE