Skip to content

Commit e637877

Browse files
committed
Added Path_GetFileNameWithoutExtension article
1 parent 47fd1f4 commit e637877

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Path_GetFileNameWithoutExtension
2+
3+
`Path_GetFileNameWithoutExtension` returns the file name and extension of the specified path string without the extension.
4+
5+
```csharp
6+
Path_GetFileNameWithoutExtension (
7+
@path NVARCHAR (4000)
8+
)
9+
RETURNS NVARCHAR (4000)
10+
```
11+
12+
## Parameters
13+
14+
- **path**: The path string from which to obtain the file name and extension.
15+
16+
## Returns
17+
18+
The path string minus the last period (.) and all characters following it.
19+
20+
## Example
21+
22+
```csharp
23+
SELECT SQLNET::Path_GetFileNameWithoutExtension('C:\Temp\MyTest.txt')
24+
```

docs2/pages/documentations/path/path.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ Performs operations on string instances that contain file or directory path info
99
| [Path_GetDirectoryName(path)](/path-get-directory-name) | Returns the directory information for the specified path string. | [Try it]()|
1010
| [Path_GetExtension(path)](/path-get-extension) | Returns the extension of the specified path string. | [Try it]()|
1111
| [Path_GetFileName(path)](/path-get-file-name) | Returns the file name and extension of the specified path string. | [Try it]()|
12+
| [Path_GetFileNameWithoutExtension(path)](/path-get-file-name-without-extension) | Returns the file name and extension of the specified path string without the extension. | [Try it]()|

0 commit comments

Comments
 (0)