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

    How to send parameters by using command line

    Instructions
    3
    7
    1.2k
    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.
    • Przemek PP
      Przemek P
      last edited by

      Hi
      I have program in c# which needs parameters. I want to ruin that program by using command line on other computer. Can I manage that?

      Regards
      David

      1 Reply Last reply Reply Quote 1
      • S
        sansupercool
        last edited by

        I too am looking for the same question. but my code is python.

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

          @sansupercool, you can using the tcmd tool to send parameters with --params .

          • Create a command that runs your C# or Python script, and set Allow Parameters = true.
          • Run this on the other computer: tcmd --trigger notepad --computer laptop --params your params

          The tcmd tool needs your token to be in c:\Users\(your user)\.TRIGGERcmdData\token.tkn which is where the agent installs it, but if you don't want to install the agent on the computer that's running tcmd, just copy your token.tkn file there.

          Russell VanderMey

          Przemek PP 2 Replies Last reply Reply Quote 0
          • Przemek PP
            Przemek P @Russ
            last edited by

            @Russ 🙂 Thank you very much for fast help. It's very nice that you've spent your time to help for question, which is probalby very basic for you. Now i can go forward 🙂

            Regards
            Przemek

            1 Reply Last reply Reply Quote 0
            • Przemek PP
              Przemek P @Russ
              last edited by

              @Russ Hi
              I have one more question. Can I run triggercmd with parameters from android application ?
              I think I can manage to write some very basic app in vs for android. I want to make some basic button and field, where I'll write value of parameter. I want to send that to triggercmdagent application, which needs value of that parameter. Thanks for help anyway :).

              Regards
              Przemek

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

                @Przemek-P, the TRIGGERcmd Android app is just like the website. You have to tap the green View Triggers button, then scroll to the right and you'll see the Parameters button for any commands with Allow Parameters set to true. If you tap that button, you can enter the parameter(s) for your command.

                TRIGGERcmd app parameters buttons

                Russell VanderMey

                Przemek PP 1 Reply Last reply Reply Quote 0
                • Przemek PP
                  Przemek P @Russ
                  last edited by

                  @Russ 🙂 AWSOME :). No comments.

                  Regards
                  David

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