Select only files that have "Copy" in the filename?

Page 1 of 2 12 LastLast

  1. Posts : 4
    Win 10 Home 10.0.19042.746
       #1

    Select only files that have "Copy" in the filename?


    Hi all,

    Is there a way to select only filenames that have "Copy" in its filename?
    Example:
    Filename22.xlsx
    Filename22 - Copy.xlsx
    Filename34.xlsx
    Filename34 - Copy.xlsx
    Filename89.xlsx
    Filename89 - Copy.xlsx
    etc.

    TIA!
      My Computer


  2. Posts : 2,068
    Windows 10 Pro
       #2

    If you are using Windows Explorer, you can do this

    Select only files that have "Copy" in the filename?-image.png
      My Computers


  3. Posts : 2,487
    Windows 10 Home, 64-bit
       #3

    You should be able to find them from a command prompt..........and then delete them, copy them, rename them, or whatever you need to do.

    You can also find them across the entire hard drive with an ordinary hard drive search tool like Everything, and then sort them, delete them, copy them, etc.
      My Computer


  4. Posts : 4
    Win 10 Home 10.0.19042.746
    Thread Starter
       #4

    Thank you all!
      My Computer


  5. Posts : 18,032
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #5

    Hello @JohnnyBeGood,

    JohnnyBeGood said:
    Is there a way to select only filenames that have "Copy" in its filename?
    Example:
    Filename22.xlsx
    Filename22 - Copy.xlsx
    Filename34.xlsx
    Filename34 - Copy.xlsx
    Filename89.xlsx
    Filename89 - Copy.xlsx
    etc.

    You could use the Command Prompt. Something like this for example [ change the <Rest_Of_Path> accordingly ] . . .

    Code:
    
    dir "C:\Users\<Rest_Of_Path>" /s /b /d | find "Copy"

    I hope this helps.
      My Computer


  6. Posts : 4
    Win 10 Home 10.0.19042.746
    Thread Starter
       #6

    [QUOTE=Paul Black;2155800]Hello @JohnnyBeGood,
    My goal was to quickly identify all "Copy" filenames in Windows Explorer that were accidentally copied and batch delete them.
    Your suggestion would only give me the list of filenames that have "Copy" in the filename?
      My Computer


  7. Posts : 1,593
    Windows 10
       #7

    Download "Everything" voidtools

    I entered 'copy' into search it found 184 files and folders that contain the word copy just as fast as I could type it. I the entered 'copy.xlsx' it didn't find any.
      My Computer


  8. Posts : 18,032
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #8

    rboppy said:
    Download "Everything" voidtools

    I entered 'copy' into search it found 184 files and folders that contain the word copy just as fast as I could type it. I the entered 'copy.xlsx' it didn't find any.

    Yes, Everything is excellent, that is what I have . . .

     Everything - FREE

    Everything [ FREE ] is an extremely quick search engine that locates files and folders by filename instantly. Unlike Windows search, it initially displays every file and folder for which the criteria of the search matches.

    About Everything:

    • Small installation file.
    • Clean and simple user interface.
    • Quick file indexing.
    • Quick searching.
    • Minimal resource usage.
    • Share files with others easily.
    • Real-time updating.

    > Website & Download => Everything - VoidTools

    I hope this helps!
      My Computer


  9. Posts : 2,487
    Windows 10 Home, 64-bit
       #9

    Johnny:

    Here's what I find when I search "Johnny Be Good" with Everything on my hard drive.

    8 hits, found instantaneously.

    I highlighted Chuck Berry. If I then hit the delete key, Chuck would be deleted from my hard drive. The other 7 would remain.

    You can also copy them elsewhere with a right click and then a paste to some other folder.

    It's a great tool.
    Attached Thumbnails Attached Thumbnails Select only files that have &quot;Copy&quot; in the filename?-johnny.jpg  
      My Computer


  10. Posts : 18,032
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #10

    ignatzatsonic said:
    Here's what I find when I search "Johnny Be Good" with Everything on my hard drive.

    8 hits, found instantaneously.

    I highlighted Chuck Berry. If I then hit the delete key, Chuck would be deleted from my hard drive. The other 7 would remain.

    You can also copy them elsewhere with a right click and then a paste to some other folder.

    It's a great tool.
    I agree.

    In the OP's situation, I would use Everything. It is much safer and Visually Apparent rather than through the Command Prompt. Additionally, you would of course need to test ANY code prior to the actual Deletion process, which all takes time!
      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 13:08.
Find Us




Windows 10 Forums