Link to home
Start Free TrialLog in
Avatar of bibi92
bibi92Flag 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
Avatar of Sam Jacobs
Sam Jacobs
Flag of United States of America image

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
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial