Opening bookmarks from command line

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
terrypin
Posts: 208
Joined: Mon Mar 18, 2013 2:41 pm

Opening bookmarks from command line

Post by terrypin »

I can open a bookmark with a command line option. For example, by executing this from the Windows 10 Run box
"C:\Program Files\Everything\Everything.exe" -bookmark "FW Maps"
Everything is launched with those search results. Very handy.

But how do I get several bookmarks displayed this way? Using the command line, the second and subsequent bookmarks just replace the first, in the same search window. I need them each in their own windows. Just like using Right click tray icon > New Search Window.

P.S. Still no sign of the sig added to my profile some hours ago. Is that facility broken?

Terry, East Grinstead, UK
Win 10 Pro (64-bit)
therube
Posts: 4985
Joined: Thu Sep 03, 2009 6:48 pm

Re: Opening bookmarks from command line

Post by therube »

Haven't tired it, but ...

Everything -bookmark "good music :-)"
Everything -newwindow -bookmark "pink floyd"
Everything -newwindow -bookmark "pipers at the gate of dawn"

If you need them all on a single line, join them with &&.
terrypin
Posts: 208
Joined: Mon Mar 18, 2013 2:41 pm

Re: Opening bookmarks from command line

Post by terrypin »

Thanks, the simple version works fine. But I cannot get any of these to work
"C:\Program Files\Everything\Everything.exe" -bookmark "ABC" & "C:\Program Files\Everything\Everything.exe" -newwindow -bookmark "XYZ"
"C:\Program Files\Everything\Everything.exe" -bookmark "ABC" && "C:\Program Files\Everything\Everything.exe" -newwindow -bookmark "XYZ"
"C:\Program Files\Everything\Everything.exe" -bookmark "ABC" & -newwindow -bookmark "XYZ"
"C:\Program Files\Everything\Everything.exe" -bookmark "ABC" && -newwindow -bookmark "XYZ"
and other variations.

Can you give an example to at least ensure I have the syntax right please?
void
Developer
Posts: 16840
Joined: Fri Oct 16, 2009 11:31 pm

Re: Opening bookmarks from command line

Post by void »

The correct syntax is:
"C:\Program Files\Everything\Everything.exe" -bookmark "ABC" && "C:\Program Files\Everything\Everything.exe" -newwindow -bookmark "XYZ"

What happens when you run this?
terrypin
Posts: 208
Joined: Mon Mar 18, 2013 2:41 pm

Re: Opening bookmarks from command line

Post by terrypin »

Thanks, mystery solved! That was one of the variations I'd tried and it failed again on repeating just now. (Just displays the XYZ search results.) However, I then tried it from a proper Command Prompt window instead of the Run box - and it worked.

I've successfully been using the Run box for single searches, but it plainly baulks at multiples like this.

Terry, East Grinstead, UK
Post Reply