copy search results using command line

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
janb
Posts: 1
Joined: Sun Nov 14, 2021 12:29 pm

copy search results using command line

Post by janb »

Hi,

is there any possibility to copy search results ( found by the command line interface) to another location?
maybe the -copyto option?

example
ES xx*.pdf
copy all files to c:\test

I want to implement this in a batch file , to automate searching for specific files which are existing in different folders and combine them in one "search" folder.
The batch file may have up to 300 command lines, so there's a lot of files to be copied.

Any suggestion will be highly appreciated
horst.epp
Posts: 1451
Joined: Fri Apr 04, 2014 3:24 pm

Re: copy search results using command line

Post by horst.epp »

A simple output redirection does the job.
therube
Posts: 4985
Joined: Thu Sep 03, 2009 6:48 pm

Re: copy search results using command line

Post by therube »

Output to a file:

Code: Select all

ES  xx*.pdf  >  C:\TMP\pdf_files.TXT
Output to the (Windows) clipboard:

Code: Select all

ES xx*.pdf  |  clip.exe
Piped to the ShowTx utility, SF.bat:
Image
Post Reply