Avatar of bibi92
bibi92
Flag for France asked on

find file in directory

Hello,

I search a file which can be in several directory create_001 or 002

create_* can be create_001 or create_002

$VERS = "C:\tmp\create_*\Variables.txt"
IF (Test-Path $VERS) {
 $SEL = Select-String -Path $VERS -Pattern "No conf found"
}

Thank you

Best regards
Powershell

Avatar of undefined
Last Comment
oBdA

8/22/2022 - Mon
Sam Jacobs

I would suggest you check out Everything, from voidtools (https://www.voidtools.com/).
I use it every single day multiple times to find files.
ASKER CERTIFIED SOLUTION
oBdA

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy