-create-file-list & -export-efu (what is each doing?)

General discussion related to "Everything".
Post Reply
russelly
Posts: 6
Joined: Fri Apr 01, 2022 9:05 pm

-create-file-list & -export-efu (what is each doing?)

Post by russelly »

I have been using Everything for a few years and trying to use it in a new way.

Goal: Routinely update file lists so I can have the latest list of file names for when I am not at the office.

Everything - does "-create-file-list" actually scan the path or just use it as a search parameter to give results from the index?
ES - does "-export-efu" scan the path or just give index results?

A typical project location on my work drive is like this: P:\Projects\500\587\587.000
The '500' folder only contains folders 501-599. We call them base project numbers.
Each base project number then can have ###.000 through ###.999 as possible project subfolders.

Right now I am trying to create a file list of the 500 base ("P:\Projects\500\") and it is not including any subfolders.

Thank you,
russelly
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: -create-file-list & -export-efu (what is each doing?)

Post by NotNull »

russelly wrote: Wed May 25, 2022 1:51 pm Everything:
- does "-create-file-list" actually scan the path or just use it as a search parameter to give results from the index?
Everything scans the path (using user credentials). Resultd do not come from the index.

russelly wrote: Wed May 25, 2022 1:51 pm ES:
- does "-export-efu" scan the path or just give index results?
Results come from the index (ES.exe "talks to" Everything.exe for results)


russelly wrote: Wed May 25, 2022 1:51 pm Right now I am trying to create a file list of the 500 base ("P:\Projects\500\") and it is not including any subfolders.
Not entirely sure what you want the results to be exactly, but my guess is you just want a list of the 500 ... 599 folders?

In that case. try the following:

Code: Select all

parent:"P:\Projects\500\"
russelly
Posts: 6
Joined: Fri Apr 01, 2022 9:05 pm

Re: -create-file-list & -export-efu (what is each doing?)

Post by russelly »

Thank you for the clarification on Everything vs ES with how they work.

For the scenario where I have P:\Projects\500\, I want all subfolders and files. You would have to recurse down a couple more levels before you actually get to any files.
P:\Projects\500\ - just subfolders 500-599, no files.
P:\Projects\500\###\ - just subfolders ###.000-###.999, no files.
P:\Projects\500\###\###.### - usually another set of folders named "Accounting, Email, Workfiles, Xfers"

russelly
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: -create-file-list & -export-efu (what is each doing?)

Post by NotNull »

And searching for "P:\Projects\500\" does not return all subfolders and files?
russelly
Posts: 6
Joined: Fri Apr 01, 2022 9:05 pm

Re: -create-file-list & -export-efu (what is each doing?)

Post by russelly »

When I enter: Everything.exe -create-file-list 500projects.efu "P:\Projects\500\"
I just get the 500 folder as the only result. Should it be giving more results?
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

Re: -create-file-list & -export-efu (what is each doing?)

Post by therube »

It should be returning everything.
So you should be seeing:

P:\Projects\500\587\587.000\file1.txt
P:\Projects\500\587\587.000\file2.txt ...

If you added the parent:, mentioned above, that would restrict your results.
russelly
Posts: 6
Joined: Fri Apr 01, 2022 9:05 pm

Re: -create-file-list & -export-efu (what is each doing?)

Post by russelly »

I agree that is what I was expecting as well. EVERYTHING!

I pinged our IS team to see if they had any input. They suggested I replace "P:" with "\\ntserver\Production\" and it worked. I have to enter the server path instead of a drive letter.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: -create-file-list & -export-efu (what is each doing?)

Post by NotNull »

Were you running the Everything.exe -create-file-list 500projects.efu "P:\Projects\500\" command under a different user account (different from you login account)? Did you see the User Account Control (UAC) prompt?
That can happen if you are running Everything as administrator. Recommended is to install the Everything Service instead.

The P:-drive mapping is user-bound.
russelly
Posts: 6
Joined: Fri Apr 01, 2022 9:05 pm

Re: -create-file-list & -export-efu (what is each doing?)

Post by russelly »

I WAS running it as administrator! This would explain things.

I never saw the UAC prompt. Is that at install or command line option?

I will check out the Everything Service.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: -create-file-list & -export-efu (what is each doing?)

Post by NotNull »

When running your command.


Another approach would be not to re-use the existing (running) Everything, but to use a separate instance.

Even when your regular Everything is running as (elevated) administrator, this should work, because it starts a new process under your login account:

Code: Select all

" c:\path to\everything.exe"   -instance 500   -create-file-list " c:\some folder\500projects.efu"   "P:\Projects\500\" 
the "500" in -instance 500 is text chosen a random and the instance only exist during the time this command is running.
russelly
Posts: 6
Joined: Fri Apr 01, 2022 9:05 pm

Re: -create-file-list & -export-efu (what is each doing?)

Post by russelly »

Much appreciation for this advice. Didn't realize I could run a service parallel to the normal script service. Good knowledge! Thank you again!

russelly
Post Reply