Description:
With this class you can:
- get an ordered list of files from a directory without directories names;
- get an ordered list of files from a directory filtered using classic pattern;
- delete all files in a directory that match a classic pattern.
(patterns like: "MyFile*.txt" or "*My*.*" or "Image.jp*" etc.).
Methods:
- ListFilesOnly(Dir As String, Sorted As Boolean, Ascending As Boolean) As List
- ListFiles(Dir As String, Pattern As String, Sorted As Boolean, Ascending As Boolean) As List
- DeleteFiles(Dir As String, Pattern As String)
Tags: ListFiles, File, Files, Directory, Directories
Version 1.1 - see posts #6 and #7
With this class you can:
- get an ordered list of files from a directory without directories names;
- get an ordered list of files from a directory filtered using classic pattern;
- delete all files in a directory that match a classic pattern.
(patterns like: "MyFile*.txt" or "*My*.*" or "Image.jp*" etc.).
Methods:
- ListFilesOnly(Dir As String, Sorted As Boolean, Ascending As Boolean) As List
- ListFiles(Dir As String, Pattern As String, Sorted As Boolean, Ascending As Boolean) As List
- DeleteFiles(Dir As String, Pattern As String)
Tags: ListFiles, File, Files, Directory, Directories
Version 1.1 - see posts #6 and #7
Attachments
Last edited: