Help me for just 1 lines PS

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
KERNEL59
Posts: 10
Joined: Wed Mar 23, 2016 1:28 pm

Help me for just 1 lines PS

Post by KERNEL59 »

Hi ,

1.This line works very well for 1 line in my file "liste.txt" I have the result, can you give me the command line for several lines in "liste.txt" ?
& "C:\Program Files\Everything 1.5a\es.exe" -instance "1.5a" $(Get-Content "C:\Users\ENiGMA59\Documents\liste.txt") -export-txt "C:\Users\ENiGMA59\resultat.txt"
2.and just a 2nd thing, how to have in the result just the names of the folders and not the path of the folder ?

thanx in advance :)
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: Help me for just 1 lines PS

Post by NotNull »

I can't think of a way to do this with one ES.exe call at the moment (brain fog ..), but letting ES search for each entry of your list individually would work (I think ...):

Code: Select all

Get-Content "C:\Users\ENiGMA59\Documents\liste.txt"| % { & "C:\Program Files\Everything 1.5a\es.exe" -instance "1.5a"  $_  -name } ) | Out-file "C:\Users\ENiGMA59\Documents\liste_output.txt"

Post Reply