Command line logoff script IPC window not found

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
pksjaveed
Posts: 3
Joined: Sun Jul 31, 2016 6:44 pm

Command line logoff script IPC window not found

Post by pksjaveed »

Hey guys. I searched high and low through the forums. Im running a logoff script with everything command line with empty results.
I get this error: "Everything IPC window not found, IPC unavailable."
Everything Services and processes are still running when this script executes so i dont know where its going wrong. I feel like it has something to do with Findwindow() or windows has already logged off and the script is running as local computer. Currently My Script is running through a user set group policy.
Anyone have a solution or can lead me in the right direction?

EDIT: In the source code of the command i found this.
everything_hwnd = FindWindow(EVERYTHING_IPC_WNDCLASS,0);
if (everything_hwnd) (This if statement is returning false)
void
Developer
Posts: 16751
Joined: Fri Oct 16, 2009 11:31 pm

Re: Command line logoff script IPC window not found

Post by void »

In short, the Everything client must be running for the command line tool to work.

The client is most likely closed when your script is started.
The command line tool does not talk to the service, only the client.

What are you trying to do with the command line tool at logoff?

Hope I can help..
pksjaveed
Posts: 3
Joined: Sun Jul 31, 2016 6:44 pm

Re: Command line logoff script IPC window not found

Post by pksjaveed »

I wrote a powershell script which uses everything to find files with a specific extension that were modified today. My end goal is to copy all files with a .xlsx extension that were modified today to a share at logoff/shutdown as a way of backing up documents without any user interaction.So far you are right, windows is closing applications before the script runs causing the error. So far, I haven't found a way to fix this.
void
Developer
Posts: 16751
Joined: Fri Oct 16, 2009 11:31 pm

Re: Command line logoff script IPC window not found

Post by void »

I'm still looking into solutions for this.

I've explored an export command line option for Everything.exe, eg:
Everything.exe -export-csv "out.csv" -export-search "*.xls dm:today" -export-filename

Ran into some issues when Everything wasn't running, I hope to make -export-csv load the database and wait until it's loaded before exporting.
So you might see the -export-csv option in Everything 1.5.

I thought of using the Database recovery tool to generate a list of filenames, although you would have to write a script to parse the csv output from db2efu and get the xls filenames modified today.

So unfortunately, I don't have a simple solution yet..
pksjaveed
Posts: 3
Joined: Sun Jul 31, 2016 6:44 pm

Re: Command line logoff script IPC window not found

Post by pksjaveed »

Same here so far no solution. A few possible solutions that might work that i came across were

1. creating a windows service that depends on the everything process. That service runs the script when windows starts closing processes and services, Which keeps everything open until the script runs. I don't know windows enough to know if this even possible or not.

2. If a user joins a domain, there is a group policy setting which runs scripts synchronously.
I haven't had time to run virtual box to test this one.

I needed a solution quick. so i scratched this script. Ending up downloading a trial of syncbackpro, which has this option. Check it out, I think it somehow uses the 1st solution i was describing.
void
Developer
Posts: 16751
Joined: Fri Oct 16, 2009 11:31 pm

Re: Command line logoff script IPC window not found

Post by void »

It is possible to run Everything as a client service that should be able to do what you want.

I haven't tested if this will work, I am uncertain if IPC will be able to communicate with the service.

If you want to run multiple instances of Everything, see Multiple Instances.
Post Reply