Page 1 of 1

Button / shortcut to restart FC?

Posted: 01.02.2014, 11:48
by Dirk
Is there a way to restart FC XE with a shortcut, button or so?

Re: Button / shortcut to restart FC?

Posted: 01.02.2014, 13:52
by Dreamer
I don't think so.

I'm using the HotkeyP to start FC and other programs with the custom keyboard shortcuts.

Re: Button / shortcut to restart FC?

Posted: 01.02.2014, 14:01
by Dirk
Thank you Dreamer,

Yes, I also use a shortcut to start FC (and other programs).

Re: Button / shortcut to restart FC?

Posted: 01.02.2014, 15:28
by joby_toss
Workaround (not an elegant solution, but it works fine):

- download nircmd
- extract nircmd.exe to FC's directory
- create in FC's folder a file named restart freecommander.bat with the following content:

Code: Select all

@echo off
start nircmd.exe closeprocess freecommander.exe 
start nircmd.exe waitprocess freecommander.exe 
start nircmd.exe exec show freecommander.exe 
taskkill /im nircmd.exe /f
Exit
- create a new favorite tool (and choose a nice icon for it):
Image
- hit it:
Image

Disclaimer: bla, bla, bla... not my fault! :D

Re: Button / shortcut to restart FC?

Posted: 02.02.2014, 00:36
by Dirk
Many thanks joby_toss,

It works so far, this is the FC to be restared: http://i.imgur.com/y0SvfMY.png
And this the one, which restarts: http://i.imgur.com/IdVnxPF.png

Settings: http://i.imgur.com/86NOhin.png

With this exe file I start FC: http://i.imgur.com/bhDly43.png

Could I put the restart freecommander.bat and exe file in another folder because of the automatically updating process (I guess, these files would be lost with the next update)? E.g. here: I:\Programme\FreeCommander

Many thanks again.

Re: Button / shortcut to restart FC?

Posted: 02.02.2014, 07:54
by joby_toss
Oh, you're using the PA.c version... I don't know how the launcher affects this restart.
I'm using the portable version packed as a .zip file; there is really no need for a launcher in case of FC. Only advantage would be the auto-update if you're using the PA.c platform also. I prefer to manually update FC so i can control what files go where.

You sure can change the paths for nircmd or the .bat file. And even modify the paths inside the .bat file. But be careful how you do it if portability needs to be preserved.

Re: Button / shortcut to restart FC?

Posted: 02.02.2014, 10:51
by Dirk
Yes, the version of PortApps. When I

Ah, clicking the bat file directly works. Great.

Many thanks for helping, joby_toss.