The .NET Framework provides effective ways of dealing with filenames and paths with standardized methods, using the System.IO namespace. However, there are many complications when dealing with paths, including problems with invalid paths and virtual and physical paths on the server. Here we look at ways to deal with these issues.
File Directory List
File Extension
GetFileNameWithoutExtension Optimization
MapPath Resolves Virtual, Physical Paths
Path Examples
Path Exists
Path.ChangeExtension Method
Path.GetDirectoryName Method
Path.GetRandomFileName Method
PhysicalApplicationPath Property
Recursive File and Directory Method
Recursive File List (SearchOption.AllDirectories)
Reserved Filenames