How to select multiple files whose names contain unique values


  1. Posts : 2
    Windows
       #1

    How to select multiple files whose names contain unique values


    I have satellite data with hundred files (Pass) in each folder (Cycle). In a folder (Cycle), contains 254 files (Pass) and I have 306 folders (Cycle). But I only need 26 files (Pass) of them. I have to copy those 26 files (Pass) to a new folder, but it takes too long if I use only hold CTRL and select that files (Pass) one by one. I want to know how to select multiple files whose names contain unique values : p0012, p0025, p0036, p0038, p0049, p0051, p0062, p0075, p0088, p0101, p0112, p0114, p0125, p0127, p0138, p0151, p0164, p0177, p0190, p0201, p0203, p0214, p0216, p0227, p0240, p0253 into new folder

    How to select multiple files whose names contain unique values-s__109625346.jpg
      My Computer


  2. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #2

    In File explorer at the top-level folder that you are interested in, paste
    j3p0012 j3p0025 j3p0036 j3p0038 j3p0049 j3p0051 j3p0062 j3p0075 j3p0088 j3p0101 j3p0112 j3p0114 j3p0125 j3p0127 j3p0138 j3p0151 j3p0164 j3p0177 j3p0190 j3p0201 j3p0203 j3p0214 j3p0216 j3p0227 j3p0240 j3p0253
    into the search box then you can select & copy/move all the files that are found.

    Denis
      My Computer


  3. Posts : 2
    Windows
    Thread Starter
       #3

    Try3 said:
    In File explorer at the top-level folder that you are interested in, paste
    j3p0012 j3p0025 j3p0036 j3p0038 j3p0049 j3p0051 j3p0062 j3p0075 j3p0088 j3p0101 j3p0112 j3p0114 j3p0125 j3p0127 j3p0138 j3p0151 j3p0164 j3p0177 j3p0190 j3p0201 j3p0203 j3p0214 j3p0216 j3p0227 j3p0240 j3p0253
    into the search box then you can select & copy/move all the files that are found.

    Denis
    if I paste all files name in the search box, no item found
    How to select multiple files whose names contain unique values-screenshot-232-.png
      My Computer


  4. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #4

    I'm sorry, I was so busy making sure I added the j3 bit correctly that I forgot the next step but hadn't noticed
    j3p0012 OR j3p0025 OR j3p0036 OR j3p0038 OR j3p0049 OR j3p0051 OR j3p0062 OR j3p0075 OR j3p0088 OR j3p0101 OR j3p0112 OR j3p0114 OR j3p0125 OR j3p0127 OR j3p0138 OR j3p0151 OR j3p0164 OR j3p0177 OR j3p0190 OR j3p0201 OR j3p0203 OR j3p0214 OR j3p0216 OR j3p0227 OR j3p0240 OR j3p0253

    Denis
      My Computer


  5. Posts : 989
    Microsoft Windows 10 Home
       #5

    Try3 said:
    I'm sorry, I was so busy making sure I added the j3 bit correctly that I forgot the next step but hadn't noticed
    j3p0012 OR j3p0025 OR j3p0036 OR j3p0038 OR j3p0049 OR j3p0051 OR j3p0062 OR j3p0075 OR j3p0088 OR j3p0101 OR j3p0112 OR j3p0114 OR j3p0125 OR j3p0127 OR j3p0138 OR j3p0151 OR j3p0164 OR j3p0177 OR j3p0190 OR j3p0201 OR j3p0203 OR j3p0214 OR j3p0216 OR j3p0227 OR j3p0240 OR j3p0253

    Denis
    Building on Denis' answer, if you frequently need to search for a list of arbitrary filenames, the following PowerShell code will generate an Explorer search string and copy it to the clipboard --- allowing you to then select the Serch box in Explorer and paste the string. Makes it easy to modify your search list.

    Code:
    'name:{0}' -f ( @'
    p0012
    p0025
    p0036
    p0038
    p0049
    p0051
    p0062
    p0075
    p0088
    p0101
    p0112
    p0114
    p0125
    p0127
    p0138
    p0151
    p0164
    p0177
    p0190
    p0201
    p0203
    p0214
    p0216
    p0227
    p0240
    p0253
    '@ -replace("`n",' OR ') ) | Set-Clipboard
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:58.
Find Us




Windows 10 Forums