DriveWorks Pro 16: SppGetFiles [send feedback...]

SppGetFiles

Returns a Pipebar (|) delimited String value that lists the files in the selected folder.

Syntax

SppGetFiles([Root Folder],[File Extension],[Include File Extension])

Where:

Root Folder is the folder from which the files will be listed.

File Extension is the file extension of the files to show. Leave as empty string to show all files.

Include File Extension is TRUE to show the extension for each file, FALSE to just show the file name.

Examples

RuleResultMeaning
SppGetFiles("C:\MyDocuments\SW\Roller","",TRUE)Bearing.SLDPRT|Bracket.SLDPRT|RollerMountAssembly.SLDASM| RollerMountAssembly.SLDDRWWill list all files, including extension, in the specified folder.
SppGetFiles("C:\MyDocuments\SW\RollerBracket",".SLDDRW",TRUE)RollerMountAssembly.SLDDRWWill list all files with the extension .SLDDRW in the specified folder.

Table of Contents