
PT-20 Programming Guide
The DicskD_freesize function returns the free space in disk D.
0xffffffff : Disk C unformatted.
Others : The free space in disk D.(Bytes)
Get the folder quantity in designate path.
int getDirNum(char *pssPath);
int Dir_Num;
Dir_Num = getDirNum(“C:\\”);
The getDirNum function can get the folder quantity in designate path.
-1 : path error.
-2 : disk unformat.
upward 0 : folder quantity.
Get the file quantity in designate path.
int getFileNum(char *pssPath);
int File_Num;
File_Num = getFileNum(“C:\\Data\\”);
The getFileNum function can get the file quantity in designate path.
-1 : path error.
-2 : disk unformat.
upward 0 : folder quantity.
Get the folder information in designate path.
int getDirList(char *pssPath, char *pssBuffer);
int DirNum;
char assBuffer[100];
DirNum = getDirList (“C:\\”, assBuffer);
The getDirList function can get the folder quantity and name in designate
path.
When pssBuffer = NULL, this function will return the buffer size.
For example, the path “D:\” has three folders “Program”, “Fonts”,
“Lookup”, then the buffer will get folder information like “Program Fonts
Komentarze do niniejszej Instrukcji