How to send parameters by using command line
-
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 -
I too am looking for the same question. but my code is python.
-
@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.
-
@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 -
@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 -
@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.
-
@Russ AWSOME :). No comments.
Regards
David