ppr
(Peter Preuss)
December 13, 2024, 11:31am
3
Moving forward from explanation to solution alternates
One of more options is LINQ and Regex
Assign Activity:
arrFilterResult | Datatype: String Array =
(From fi In New DirectoryInfo("YourPath").GetFiles()
Where Regex.IsMAtch(fi.Name,"YOUR_REGEX_PATTERN, RegexOptions.IgnoreCase)
Select fi.FullName).toArray
taken from:
This CheatSheet introduces the basic use of available functionalities provided by the .Net API in order to deal with the filesystem. With further examples also special cases are presented.
Basic Usage
System.IO.Directory
Directory offers some static methods for basic operations on folder and subfolders
arrFullFilePaths | String() = Directory.GetFiles("C:\_demo\FileSystem\SubfolderA")
Visuals [grafik]
[grafik]
[grafik]
System.IO.DirectoryInfo
The DirectoryInfo class offers instance methods …
And also:
[HowTo] LINQ (VB.Net) Learning Catalogue - Help / Something Else - UiPath Community Forum
1 Like