PathGetFileNameWithoutExtension Method (String) |
Returns the file name of the specified path string without the extension.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax public static string GetFileNameWithoutExtension(
string path
)
Public Shared Function GetFileNameWithoutExtension (
path As String
) As String
public:
static String^ GetFileNameWithoutExtension(
String^ path
)
static member GetFileNameWithoutExtension :
path : string -> string
Parameters
- path
- Type: SystemString
The path of the file. The path cannot contain any of the characters defined in GetInvalidPathChars.
Return Value
Type:
StringThe string returned by GetFileName, minus the last period (.) and all characters following it.
Exceptions See Also