Button / shortcut to restart FC?

Discussion, questions and support.
Post Reply
Message
Author
Dirk
Posts: 187
Joined: 02.06.2010, 11:38

Button / shortcut to restart FC?

#1 Post by Dirk » 01.02.2014, 10:48

Is there a way to restart FC XE with a shortcut, button or so?
FC newest stable version, portable
Win 7 64bit

User avatar
Dreamer
Site Admin
Posts: 3551
Joined: 19.08.2007, 21:40
Location: Slovakia

Re: Button / shortcut to restart FC?

#2 Post by Dreamer » 01.02.2014, 12:52

I don't think so.

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

Dirk
Posts: 187
Joined: 02.06.2010, 11:38

Re: Button / shortcut to restart FC?

#3 Post by Dirk » 01.02.2014, 13:01

Thank you Dreamer,

Yes, I also use a shortcut to start FC (and other programs).
FC newest stable version, portable
Win 7 64bit

joby_toss
Posts: 1346
Joined: 22.07.2009, 19:19
Location: Romania
Contact:

Re: Button / shortcut to restart FC?

#4 Post by joby_toss » 01.02.2014, 14:28

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

Dirk
Posts: 187
Joined: 02.06.2010, 11:38

Re: Button / shortcut to restart FC?

#5 Post by Dirk » 01.02.2014, 23:36

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.
FC newest stable version, portable
Win 7 64bit

joby_toss
Posts: 1346
Joined: 22.07.2009, 19:19
Location: Romania
Contact:

Re: Button / shortcut to restart FC?

#6 Post by joby_toss » 02.02.2014, 06:54

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.

Dirk
Posts: 187
Joined: 02.06.2010, 11:38

Re: Button / shortcut to restart FC?

#7 Post by Dirk » 02.02.2014, 09:51

Yes, the version of PortApps. When I

Ah, clicking the bat file directly works. Great.

Many thanks for helping, joby_toss.
FC newest stable version, portable
Win 7 64bit

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests