Posted on 10th September 2024|628 views
How to retrieve filename without extension in Powershell?
Posted on 10th September 2024| views
We can retrieve filename without an extension through the “GetFileNameWithoutExtension” method.
Example: PS C: \> :: GetFileNameWithoutExtension(“D:\cde\tst\test1.txt”)
Output:
Test1