About 1,110,000 results
Open links in new tab
  1. powershell - List file names in a folder matching a pattern, …

    Jun 29, 2017 · Assuming that you need to match only the file name part of each file's path and that your pattern can be expressed as a wildcard expression, you do not need Select-String at …

  2. How to Find File by Name in PowerShell?

    May 11, 2024 · In this tutorial, I will show you different methods to find files by name in PowerShell. To find a file by name using PowerShell, you can utilize the Get-ChildItem cmdlet …

  3. How to Filter Files and Folders Using PowerShell | Delft Stack

    Feb 2, 2024 · Get-ChildItem cmdlet when executed, display files, directories with their Mode, LastWriteTime, Length (file size), and Name properties on the PowerShell console.

  4. PowerShell Where Name Like: Filter Your Queries Efficiently

    The `Where-Object` cmdlet in PowerShell allows you to filter objects based on specific criteria, such as finding names that match a certain pattern using the `-like` operator. Here’s a code …

  5. Filtering with PowerShell Where-Object: Easy Examples

    Oct 10, 2022 · In this article, I’ll explain how to use the PowerShell Where-Object cmdlet to filter objects and data. I’ll provide a series of easy examples showing you how to filter files by name …

  6. PowerShell: List Files by Wildcard Name Pattern - XahLee.info

    Jul 13, 2022 · Filter File Name by Wildcard (-filter) -filter parameter takes a Wildcards pattern to show only those files. Useful if you want to list files of a specific filename extension.

  7. Find Files That Match a Pattern - PowerShell Cookbook

    To find all items in the current directory that match a PowerShell wildcard, supply that wildcard to the Get-ChildItem cmdlet: Get-ChildItem *.txt; To find all items in the current directory that …

  8. How can I filter filename patterns in PowerShell?

    ls -Name | Select-String -Pattern 'my[Rr]egexp?' The -Name argument seems to make ls return the result as a plain string rather than FileInfo object, so Select-String treats it as the string to …

  9. searching for filenames in folders and subfolders of a directory …

    Aug 12, 2022 · But the following statement: Write-Host (Get-ChildItem C:\temp -recurse | Where-Object {$_.name -match "[a-zA-Z].txt"} | Select-Object Fullname) is giving O/P like this: …

  10. How to List File Names Only in PowerShell?

    Apr 10, 2024 · To list file names only in PowerShell, you can use the Get-ChildItem cmdlet combined with the -Name parameter. For example, Get-ChildItem -Path “C:\Your\Directory” …

Refresh