Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Get filename consisting of two dots

$
0
0

Hi guys,

I want to make a script that searches through subfolders on files that contain two dots.

for example: test.txt.random 

 

I have tried:   $extension.name -match "*.*.*") but it doesn't work..

 

Error: parsing "*.*.*" - Quantifier {x,y} following nothing.

 

I hope you guys can help me out!

Greetings Toeter


Viewing all articles
Browse latest Browse all 6937

Trending Articles