How to add start external program from menu?

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

Post Reply
lank
Member
Member
Posts: 49
Joined: 2007 Oct 12, 13:24

How to add start external program from menu?

Post by lank »

I'm embarrassed to ask this since I've done it once and can't remember how I did it or find any instructions....

I would like to add an icon on my toolbar that will open an external program. In this case Faststone Image Viewer. Ideally it would open in the folder I"m browsing in xplorer2.
User avatar
FrizzleFry
Platinum Member
Platinum Member
Posts: 1241
Joined: 2005 Oct 16, 19:09

Re: How to add start external program from menu?

Post by FrizzleFry »

first create a user command (from customize menu)... something like...

>"C:\Program Files\FastStone\program.exe" $A

the $A token will send all selected files to the program, you could also use $F to send only the focused file
if you do not want to send any files just leave off the token ($A)

then right click the toolbar you want to add the icon to and customize
find the user command you created in the (loooong) list and add it to the toolbar
Kilmatead
Platinum Member
Platinum Member
Posts: 4578
Joined: 2008 Sep 30, 06:52
Location: Dublin

Re: How to add start external program from menu?

Post by Kilmatead »

Huh, "Lank, Joined: Fri 12-Oct-2007"... :wink: 2007, eh? That's only... <counts fingers and toes>... a decade? :D (Sorry, couldn't resist.)

To add to Frizzle's instructions, you may also use $P to pass the current folder x2 is browsing, instead of any specific file therein, though whether Faststone will accept just a default path directly, I can't say.

Edit: A quick install/test reveals that using:

> "C:\Program Files (x86)\FastStone Image Viewer\FSViewer.exe" "$P"

...does indeed open Faststone to x2's currently browsed folder without having to first target any single file or folder within it. Leaving off the $P would just open the viewer to its last location, which wouldn't be very helpful.
lank
Member
Member
Posts: 49
Joined: 2007 Oct 12, 13:24

Re: How to add start external program from menu?

Post by lank »

Thank you. I knew it was something simple.

They say memory is the first thing to go as one gets older. I can't remember what the second is.....

Until recently (like when I had to go to Windows 10) I never needed to think about external programs. Once W10 decided their "Photos" app was the default and it sucks I use different apps for different reasons and now adding to the toolbar is a great "new" feature. (Yes I know you can change default apps in Windows 10 and I have done so for photos but I need more options at times).
User avatar
FrizzleFry
Platinum Member
Platinum Member
Posts: 1241
Joined: 2005 Oct 16, 19:09

Re: How to add start external program from menu?

Post by FrizzleFry »

One of my main annoyances with Windows 10 is that is seems to reset the file associations from time to time and it will present the open with dialog even though I have already chosen default programs.
QT-Pro
Silver Member
Silver Member
Posts: 176
Joined: 2007 Jul 12, 15:55

Re: How to add start external program from menu?

Post by QT-Pro »

FrizzleFry wrote: 2017 Jul 13, 13:00 One of my main annoyances with Windows 10 is that is seems to reset the file associations from time to time and it will present the open with dialog even though I have already chosen default programs.
Same thing happens to me. Dell tech support suggested I had corrupted Windows somehow and should do a clean reinstall. Eff that! I can't tell you how pleased I am to discover that it is yet another Windows bug and not something stupid I may have done.
User avatar
nikos
Site Admin
Site Admin
Posts: 15791
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Re: How to add start external program from menu?

Post by nikos »

many "major" win10 upgrades reset all sorts of things, including the explorer replacement mode in xplorer2. They also reset power options and other subtle settings you have to keep an eye open for. Very daft
User avatar
FrizzleFry
Platinum Member
Platinum Member
Posts: 1241
Joined: 2005 Oct 16, 19:09

Re: How to add start external program from menu?

Post by FrizzleFry »

I assumed that it was Windows Update that did the resetting but I had not really looked into it.

UAC, which I switch to not shade the screen, does not get reset anymore so I guess MS is working on this but the default programs got reset recently. It seems that this last time it remembered my default programs rather than reset to the default MS apps but I still had to click on the always use this program checkbox in the open with dialog.
Post Reply