How can I shutdown PC?



  • I have tried for an hour to get my computer to shutdown with triggercmd and Alexa. I cant figure it out. I can run calculator, but cant even run Reboot that was a default trigger that came with the program. I have windows 7. I have updated triggercmd, installed background service, and addd to system path. I have tried with GUI command editor, and text editor. Here is what the text looks like for calculator, which works, open website, which works, and reboot and shutdown, which dont work.

    "trigger": "Reboot in 10 seconds",
    "command": "shutdown /r /t 10",
    "ground": "background",
    "voice": "reboot"
    },
    {
    "trigger": "Calculator",
    "command": "calc",
    "ground": "foreground",
    "voice": "calculator"
    },
    {
    "trigger": "Launch a website",
    "command": "start http://www.google.com",
    "ground": "foreground",
    "voice": "site"
    },
    {
    "trigger": "shutdown",
    "command": "-trigger "shutdown" -computer "pc"",
    "ground": "background",
    "voice": "shutdown"

    Please help


  • administrators

    @rtubbs316, good question. I added this to the examples. I think others could use this too. I also added "Abort shutdown"

    This is the command assuming you want it to wait 60 seconds. Use /t 1 to shutdown in 1 second:

    shutdown /s /t 60
    

    You could also add a /f for "force"

    shutdown /s /t 60 /f
    

    You can also abort the shutdown like this:

    shutdown /a
    

    Type this at a cmd prompt to get the full useage of the shutdown command:

    shutdown /?


  • @russ I'm also having issues using the reboot and shutdown commands. I've called my PC "computer" and so I've tried to ask Alexa both "Alexa, ask TRIGGERcmd to shutdown computer" and "Alexa, ask TRIGGERcmd to shut down in 1 minute computer".

    However, Alexa responds with "Could not find a computer with voice word shutdown in 1 minute." (same issue with rebooting also).


  • administrators

    @christopher-hogben,

    Assuming your voice field is set to "reboot", your sentence should be: "Alexa, ask TRIGGERcmd to run Reboot".

    If you have more than one computer and want to run a command on your non-default computer, you can say, "Alexa, ask TRIGGERcmd to run Reboot on Computer" to specify the computer.

    Also if you click the "Voice commands" link on the website while you're logged in, you'll see a list of sentences in the "Say this" column.

    Also, make sure you test this from the website first. If you don't see the "Reboot in 10 seconds" option on the website, you probably don't have the background service installed yet. Background commands only show up when you have the background service installed. Background commands are meant to be runnable even if you're not logged into your PC.


Log in to reply
 

Looks like your connection to TRIGGERcmd Forum was lost, please wait while we try to reconnect.