"Restart PC" & "Shutdown PC" buttons?

  • Thread starter Deleted member 273615
  • Start date
D

Deleted member 273615

Guest
I have Corsair K60 keyboard that doesn't come with Restart and/or Shutdown buttons. Is there a way I can assign a Restart and Shutdown command/function/shortcut to a key/button of my preference or a combination of keys? I could use a rarely or never-used button like "Pause/Break" for this purpose. If it is possible, please let me know how to do it!

Thanks!
 
I don't have that keyboard so I'm not sure if this can be done, but you could try assigning a program (more specifically, a batch file) to a key(s).
create a batch file with this command: shutdown /r /f /t 0 (this will restart the pc)
to shutdown, substitute the r with an s.

PM me or reply to the thread if you need more specific instructions in creating the batch file(s).
 
Can such a batch file be used at any moment? Let's say a game semi-hung up or something else like super-slow mouse cursor not responding or whatever else - would pressing the assigned key execute the batch file JUST like a normal shutdown/restart key would on a keyboard that has such keys?
 
I assume a .ps1 or bat file could be mapped to a key, but do you really want to risk whacking it in the middle of something and have a forced reboot happen?

The below process takes about 8 seconds:

hit win key, type cmd hit enter
type
shutdown -r -f -t 0
hit enter

If your keyboard is unresponsive power button is your only option.
 
i just tried this with my logitech g710+ keyboard. it worked just fine, but it's almost impossible to know if it will work when your computer becomes unresponsive.
like schizrade said, the power button will probably be your only option.
 
Back
Top