Filesystem-Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Filesystem-Commands >

Filesystem-Commands

LFN. - Long-File-Name

Previous Top Next


MiniRobotLanguage (MRL)

 

LFN. Command

Long FileName

 

 

Intention

 

Convert a  8+1 (Short-Filename) into a Long Filename (LFN) .

If you simply write:

 

LFN.

 

then the command will try to get the source-filename (the one that should be converted) from the stack. If you add a variable like this:

 

LFN.§§TXT

 

then the command will take the the source-filename (the one that should be converted) from the given variable §§TXT and put the result on the stack.

 

The next step is, that you give two variables as parameters, like this:

 

LFN.§§TXT|§§LFN

 

in that case, the robot will take the source-filename (the one that should be converted) from the given variable §§TXT and put the result into §§LFN.

 

 

 

Syntax

 

 

LFN.[P1][|P2]

 

 

Parameter Explanation

 

P1 - (optional) VAR with the Short-Filename. If omitted,

     source is taken from TOS.

 

P2 - (optional) VAR for the result. If omitted,

     the result will be placed on TOS.

 

 

 

 

Example

 

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

' LFN.-DEMO

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

'DBM.2

DBP.-------------------------

' We work from Stack to Stack if no Parameters are specified.

: §§TXT=c:\progra~1

PUV.§§TXT

LFN.

DBP.Result:>$$000<

DBP.-------------------------

' We work from Variable to Stack if one Parameters is specified.

: §§TXT=c:\progra~1

LFN.§§TXT

DBP.Result:>$$000<

DBP.-------------------------

' We work from Variable to Stack if one Parameters is specified.

: §§TXT=c:\progra~1

LFN.§§TXT|§§LFN

DBP.Result:>§§LFN<

DBP.-------------------------

END.

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also:

 

    3.3 Specialfolders

    CFF. - Copy-From-File

    ATF - Append-to-File

    CTF - Copy-To-File

    CTI. - Copy-To-Inifile

    CFI. - Copy-From_IniFile

    COP. - Copy File

    GLC. - Get-Line-Count

    IEF. / NEF. - If - exist - File

    LFF - Line-From-File

    SHF. - Shell-File-Operation

    WFF. - Wait-For-File