Post
PowerShell
How to retrieve filename without extension in Powershell?
Posted on 23rd September 2023
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?
Copyright © 2013 - 2023 MindMajix Technologies