Date: Thu, 28 Mar 2024 14:57:22 -0700 (PDT) Message-ID: <1698938356.335.1711663042480@wiki.srpcs.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_334_1587877603.1711663042479" ------=_Part_334_1587877603.1711663042479 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Extracts the filename with extension, if there is one.
Filename =3D SRP_P= ath("GetFilename", Path)
Parameter | Description |
---|---|
Path | A path with or without command line parameters.<= /td> |
The filename with the path.
The GetFilename service extracts the last no= n-directory portion of a path, with the extension if there is one. If Path = ends with a backslash, then the nothing is returned because a path ending i= n a backslash is assumed to be a directory.
Note. This method supports = paths that contain command line parameters. In this case, command line para= meters are simply ignored.
Path =3D "C:\path1= \path2\path3\filename.txt" Result1 =3D SRP_Path("GetFilename", Path) Result2 =3D SRP_Path("GetFilename", SRP_Path("RemoveBackslash", SRP_Path("G= etDirectory", Path))
Result1 will be "filename.txt". Result2 will= be "path3".
GetComponents= a>, GetDirectory, GetExtension= , GetParameters, GetPath, RemoveFilename