Smart Package Robot 's List Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Arrays and Data-Structures > LST. - List Arrays > File-List Operations >

 Smart Package Robot 's List Commands

LST.GetPaths - Load Full File Paths into Container

Previous Top Next


MiniRobotLanguage (MRL)

 

LST.GetPaths

Load full file paths into the container

 

 

Intention

 

The LST.GetPaths command loads full file paths from a specified folder into a container. The file paths are filtered using a file mask (e.g., *.txt). This is useful for processing or listing files in a directory with their full paths.

The command takes three parameters: the handle of the container, the folder path, and the file mask.

 

 

Syntax

 

LST.GetPaths|P1|P2|P3

 

Parameter Explanation

 

P1 - The handle of the container. This is typically a variable that contains the handle of the container.

P2 - The folder path from which to load the file paths.

P3 - The file mask to filter the file paths (e.g., *.txt).

 

 

Example

 

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

' LST.GetPaths Sample

'***********************************
' Create a new list

LST.New|$$LST

 

' Load full file paths from a folder into the list

LST.GetPaths|$$LST|C:\Temp|*.txt

 

' Display the number of file paths loaded

LST.Count|$$LST|$$CNT

DBP.Number of file paths loaded: $$CNT

 

' End the script

ENR.

 

 

Remarks

 

-

 

 

Limitations:

- The folder path must exist and be accessible.

- The file mask must be valid (e.g., *.txt).

 

See also:

 

LST.New - Create a New List

LST.Count - Get Number of Items in Container

LST.GetFiles - Load File Names into Container