GeoCOM Reference Manual
File Transfer - FTR
Leica TPS1200 – Version 1.50
126
13.3.7
FTR_Delete – Delete file
AUT_ReadTol ...............................................
........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ 9008
.............................................................................................................................................................................................................................
9015
.................................................................................................................................................
AUT_ReadTol
C-Declaration
FTR_Delete(FTR_DEVICETYPE eDeviceType, FTR_FILETYPE eFileType,
FTR_MODDATE DelDate, char *szFileName,
unsigned short &runNumFilesDeleted);
VB-Declaration
VB_FTR_Delete(DeviceType As Long, FileType As Long, DelDate As FTR_MODDATE,
ByVal FileName As String, NumFilesDeleted As Integer)
Request
%R1Q,23309:
eDeviceType
,
eFileType,ucDay,ucMonth,ucYear,szFileName
ASCII-Response
%R1P,0,0:
RC
,
unNumFilesDeleted
Remarks
This command deletes one or more files. Wildcards may be used to delete multiple files. If deletion date is valid
only files older than deletion date are deleted.
Parameters
eDeviceType in
Device type.
eFileType in
File type.
DelDate in
Deletion date. Valid if ucMonth is not 0.
runNumFilesDeleted out
Number of deleted files
Return-Codes
GRC_OK
0 Execution
successful.
GRC_IVPARAM
2
Device not available or can not get path.
See Also
FTR_List
Example
GRC_TYPE
rc;
FTR_DEVICETYPE eDeviceType;
FTR_FILETYPE eFileType;
FTR_MODDATE DelDate;
char szFileName[128];
unsigned short unNumFilesDeleted;
eDeviceType = FTR_DEVICE_PCPARD;
eFileType = FTR_FILE_IMAGES;
DelDate.ucMonth = 0;
strcpy(szFileName, "image000.jpg");
unNumFilesDeleted = 0;
// delete file
rc = FTR_Delete(eDeviceType, eFileType, DelDate, szFileName,
unNumFilesDeleted);
if(rc == GRC_OK)
{
if(unNumFilesDeleted == 1)
{
// file deleted
}
}
Содержание TM30 Series
Страница 1: ...Leica TPS1200 Leica TS30 TM30 GeoCOM Reference Manual Version 1 50 English...
Страница 120: ...GeoCOM Reference Manual File Transfer FTR Leica TPS1200 Version 1 50 120 while bLast TRUE FTR_AbortList...
Страница 136: ...GeoCOM Reference Manual Motorisation MOT Leica TPS1200 Version 1 50 136 handle error...