s
sri kanth

Posted on 29th February 2024|576 views

0
votes

Powershell Get Filename Without Extension

How to retrieve filename without extension in Powershell?

Answers
P
jordan chris

Posted on 29th February 2024

We can retrieve filename without an extension through the “GetFileNameWithoutExtension” method.

Example: PS C: \> :: GetFileNameWithoutExtension(“D:\cde\tst\test1.txt”)

Output:

Test1
 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos