Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Search files on specific depth level

$
0
0

How can I search for a file in a specific subfolder that constantly changes name. Max depth should be at -1. My current script is:

$FilePathStat = “C:\NG_auto_project\nextgene_to_import”
$FileNameStat = “*_StatInfo.txt”
$Outputa = Get-ChildItem -Path $FilePathStat -Filter $FileNameStat | select -ExpandProperty FullName

Can you pliz help me?

THX


Viewing all articles
Browse latest Browse all 13067

Trending Articles