Removes the file extension, if there is one.
NewPath = SRP_Path("RemoveExtension", Path) |
Parameter | Description |
---|---|
Path | A path with or without command line parameters. |
The path without the extension.
The RemoveExtension service returns the given path without the extension, if it could find one.
Note. This method supports paths that contain command line parameters. In this case, command line parameters are simply ignored.
Result1 = SRP_Path("RemoveExtension", "C:\path\filename.txt") Result2 = SRP_Path("RemoveExtension", "C:\path\filename.txt.ext") |
Result1 will be "C:\path\filename". Result2 will be "C:\path\filename.txt".
AddExtension, GetExtension, RemoveBackslash, RemoveDirectory, RemoveFilename, RemoveParameters, RenameExtension