TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    bat file not triggering...

    Windows
    3
    16
    419
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • tuicemenT
      tuicemen @drywsef
      last edited by

      @drywsef, can you post the line from your commands.json file as well as line before and after. I suspect the format maybe the issue.

      D 1 Reply Last reply Reply Quote 0
      • D
        drywsef @tuicemen
        last edited by

        @tuicemen do you mean the lines from the text editor?
        Here’s what I have from that section:
        {
        "trigger": "Dynamount",
        "command": "”C:\Program Files\DynaMount\dynamount.exe”",
        "offCommand": "",
        "ground": "foreground",
        "voice": "Dynamount",
        "voiceReply": "Dynamount Starting",
        "allowParams": "false"
        }

        tuicemenT 2 Replies Last reply Reply Quote 0
        • tuicemenT
          tuicemen @drywsef
          last edited by tuicemen

          @drywsef I see double quotes in your command and a space.
          I believe it should be

          "command":"C:\Program Files\DynaMount\dynamount.exe",
          
          D 1 Reply Last reply Reply Quote 0
          • D
            drywsef @tuicemen
            last edited by

            @tuicemen thanks for the suggestion. Unfortunately, deleting the additional quotations and space did not work.

            tuicemenT 1 Reply Last reply Reply Quote 0
            • tuicemenT
              tuicemen @drywsef
              last edited by

              @drywsef Ok I'm unfamiliar with TRIGGERcmd in Windows I don't have a offCommand but thought that was only required if your allowParams was set to true.

              If this is not the last line the the commands.json file it needs a Comma at the end of the line after the }

              1 Reply Last reply Reply Quote 0
              • tuicemenT
                tuicemen @drywsef
                last edited by tuicemen

                @drywsef it looks like you have other spaces in your call
                I believe your line should look like this:

                {"trigger":"Dynamount","command":"C:\Program Files\DynaMount\dynamount.exe","offCommand":"","ground":"foreground","voice":"Dynamount","voiceReply":"Dynamount Starting","allowParams":"false"}
                
                D 1 Reply Last reply Reply Quote 0
                • D
                  drywsef @tuicemen
                  last edited by drywsef

                  @tuicemen Thanks for writing up that line.
                  Unfortunately, it still does not work. Why would additional spaces be added if I am using the GUI editor? I have to say, this seems like a lot of troubleshooting for a very simple command. I wonder what the disconnect is.

                  tuicemenT RussR 2 Replies Last reply Reply Quote 0
                  • tuicemenT
                    tuicemen @drywsef
                    last edited by

                    @drywsef I have no experience with the GUI editor you may need to look at the whole commands.json file.
                    Is this the first command you've added?

                    1 Reply Last reply Reply Quote 0
                    • RussR
                      Russ @drywsef
                      last edited by

                      @drywsef, I think I see the problem. Notice the quotes around your command are crooked:

                      59669ecf-73cd-433a-a582-396b86984213-image.png

                      I think those are called "curly" quotes. Anyway, just delete those and re-type them in the GUI editor and it should work. I suspect you copied that path from Word or some tool that supports curly quotes.

                      Russell VanderMey

                      D 1 Reply Last reply Reply Quote 0
                      • D
                        drywsef @Russ
                        last edited by

                        @Russ Thanks so much! That did the trick.

                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post