FIL. - File-Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Filesystem-Commands > FIL. - File-Commands >

FIL. - File-Commands

FIL.Length

Previous Top Next


MiniRobotLanguage (MRL)

 

FIL.Length

Returns the Length of a given File

 

NTFS-Direct

 

Intention

 

This Command is used to return the File-Length . The  Command

 

$$FIL=C:\Tesffile.txt

FIL.Length|$$FIL|$$RES

MBX.The file length is $$RES

 

If you omit P3 then the result will be placed on the TOS.

 

$$FIL=C:\Tesffile.txt

FIL.Length|$$FIL

MBX.The file length is $tos$

 

 

2015-02-09 19_36_44-SPR-Editor1.00 - [F__00_MR_PB_MiniRobots-Editoren_SPRE 02_Source_Sample Scripts_

 

 

 

 

Syntax

 

 

FIL.Length|P1[|P2]

 

 

Parameter Explanation

 

P1 - Filename and Path to the file

   

P2 - (optional) Variable for the result. If omitted the result is placed on TOS.

 

 

Example

 

'*****************************************************

' EXAMPLE 1: FIL.Length

'*****************************************************

$$FIL=?path\Tests.mrt

FIL.Length|$$FIL|$$RES

MBX.The file length is $$RES

ENR.

 

'*****************************************************

' EXAMPLE 2: FIL.Length

'*****************************************************

$$FIL=?path\Tests.mrt

FIL.Length|$$FIL

MBX.The file length is $tos$

ENR.

 

 

Remarks

 

Uses 64 bit numbers, can be used for files of any size.

 

 

Limitations:

 

-

 

 

See also:

 

•     Split File

•     Join File

•     OPT. - Optional Settings

•     GEC. - Get Encryption

•     RMD. - Remove-Directory

•     ATF - Append-to-File

•     CFF. - Copy-From-File

•     CTF - Copy-To-File

•     COP. - Copy File

•     SHF. - Shell-File-Operation

•     MDF. - Make-Direktory-File

•     MKD. - Make-Directory

•     GLC. - Get-Line-Count

•     IEF. / NEF. - If - exist - File

•     LFF - Line-From-File

•     WFF. - Wait-For-File

•     REN. - Rename File/Dir