Files & Directories

There are five classes in the System.IO namespace that are very useful:
Directory - Contains shared methods that let you enumerate and manipulate directories
DirectoryInfo - Represents an individual directory and exposes methods to query its attributes and manipulate them
File - Contains shared methods that let you enumerate and manipulate files
FileInfo - Represent an individual file and exposes methods to query its attributes and manipulate them
Path - Contains shared methods that let you manipulate path information
This namespace also provides classes to allow synchronous and asynchronous reading from and writing to data strreams and files.
FileStream -
StreamReader -
StreamWriter -


System.IO.FileSystemWatcher 

With System.IO.DriveInfo
   .AvailableFreeSpace
   .RootDirectory
   .TotalSize
   .TotalFreeSize
End WIth

UNC - \\system\share\directory

CopyDirectory( , showUI)
showUI = UIOption.AllDialogs | OnlyErrorDialogs

With System.Environment.SystemDirectory
   .ApplicationData
   .ProgramFiles
   .Favourties
   .System
End With

System.Linq - Standard Query Operators

var folders = System.IO.Directory.GetDirectories( 
   @"C:\").Where(d => d.Length > 5).OrderBy(d => d.Length);
foreach (string folder in folders)
{
   System.Windows.Forms.MessageBox.Show(folder);
}


System.Linq - Query Expression Syntax

var folders = 
   from d in System.IO.Directory.GetDirectories(@"C:\")
   where d.Length > 5
   orderby d.Length
   select d;
foreach (string folder in folders)
{
   System.Windows.Forms.MessageBox.Show(folder);
}

VB.Net

VB.Net and VBA Migration


Data Pipeline

Often abbreviated to DPL.
Real time multi-threading
link - learn.microsoft.com/en-us/dotnet/standard/io/pipelines
link - learn.microsoft.com/en-us/dotnet/standard/parallel-programming/walkthrough-creating-a-dataflow-pipeline



© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited TopNext