PathStripPath (shlwapi)
Last changed: anfortas.geo@yahoo.com-216.204.61.86

.
Summary
Removes the path portion of a fully qualified path and file.

C# Signature:

[DllImport("shlwapi.dll")]
public static extern void PathStripPath([In,Out] StringBuilder pszPath);

VB Signature:

Declare Function PathStripPath Lib "shlwapi.dll" (TODO) As TODO

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

StringBuilder str = new StringBuilder(@"c:\dir1\file.txt");

PathStripPath(str);

// Result: str.ToString() == "file.txt"

Alternative Managed API:

Do you know one? Please contribute it!

Documentation