ARS. - File List Operations

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Arrays and Data-Structures > ARS. - Array's >

ARS. - File List Operations

 

📘 SPR File List Operations Manual

 

Welcome to the SPR File List Operations Manual! 🌟

This guide provides a comprehensive overview of file list operations in SPR, explaining what they are, how to use them, and why they are a powerful tool for scripting. Whether you're a beginner or an experienced user, this manual will help you master file list operations with clear explanations and practical examples. Let’s dive in! 🚀

 

📄 Table of Contents

What are File List Operations?

File List Commands Overview

Code Examples

 

What are File List Operations? 📜

**File List Operations** in SPR refer to the processes of retrieving and managing lists of files and paths. These operations are crucial for tasks such as file management, batch processing, and directory traversal.

File list operations allow you to dynamically handle file and path data, making it easier to perform various file-related tasks efficiently.

 

File List Commands Overview 🛠️

Here’s a quick overview of the most common file list commands:

 

File List Commands

'Get a list of files from a specified path.

ARS.GetFiles|$$ARS|Path|$$RES

 

'Get a list of paths from a specified directory.

ARS.GetPaths|$$ARS|Path|$$RES

 

Code Examples

Example: Getting a List of Files

 

' Create an Array

ARS.New|$$ARS

 

' Get a list of files from a specified path

ARS.GetFiles|$$ARS|C:/example/path|$$FIL

 

' Output the list of files

MBX. Files: $$FIL

 

' Free the Array

ARS.End|$$ARS

 

Example: Getting a List of Paths

 

' Create an Array

ARS.New|$$ARS

 

' Get a list of paths from a specified directory

ARS.GetPaths|$$ARS|C:/example/directory|$$PAT

 

' Output the list of paths

MBX. Paths: $$PAT

 

' Free the Array

ARS.End|$$ARS