Post
PowerShell
How to retrieve filename without extension in Powershell?
Posted on 24th April 2024
We can retrieve filename without an extension through the “GetFileNameWithoutExtension” method.
Example: PS C: \> :: GetFileNameWithoutExtension(“D:\cde\tst\test1.txt”)
Output:
Test1
STILL GOT QUERIES?