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

    Prevent suppression of cmd window?

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 4 Posters 3.1k Views 1 Watching
    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.
    • C Offline
      Christian Robinson
      last edited by

      I'm on Windows 10, and I have a process that outputs text information to a cmd window. I want to be able to invoke this with TRIGGERcmd, but when I do the cmd window is suppressed, even though the process is visible in the task manager.

      I've tried various invocations in the commands.json file, including explicitly calling cmd to run the command but the cmd window never appears.

      Normally I would consider the suppression of cmd a good thing, since I have some limited experience with wanting to be able to run programs without a cmd window appearing, and had to come up with some interesting workarounds in some cases. I just need a way to override it.

      RussR 1 Reply Last reply Reply Quote 0
      • RussR Offline
        Russ @Christian Robinson
        last edited by Russ

        @Christian-Robinson, I found that if you prefix your command with "start" your cmd window will show up in the foreground.

        {"trigger":"Test","command":"start C:\\test\\test.bat","ground":"foreground","voice":"test"},

        I notice it doesn't exit the window when the batch file completed though - I had to add "exit" to the end of the batch file to have it close.

        Contents of test.bat:
        echo hi
        pause
        exit

        Russell VanderMey

        C 1 Reply Last reply Reply Quote 1
        • C Offline
          Christian Robinson @Russ
          last edited by Christian Robinson

          @Russ Aha! Oddly I thought I had tried that, but I tried it just now and it worked so I'm sure I'm remembering wrong.

          As always, thank you. This is quickly becoming my favorite Alexa skill.

          1 Reply Last reply Reply Quote 0
          • XanderX Offline
            Xander
            last edited by

            @Acacia-Hary That'll be harder to do when you're banned for spamming. Bye.

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post