Paths

by Sam Allen | RSS

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

Dot Net Perls | Search
Featured | 7-Zip Command-Line Examples | DataGridView Tips and Secrets | Dictionary Examples, Keys and Values | List Examples | Split String Examples
C# | Obsolete Attribute | True and False | Gradient Tips | Catch Examples
© 2010 Sam Allen. All rights reserved.
Dot Net Perls | Sam Allen