We have a C# console application, which takes various input(note- no command line input)
Eg C:\MyTool.exe
Enter Option (1-4):
Enter Location(1-7):
Enter Region (1-3):
After providing these input one by one, tool process the input and produce some business result.
Now, I have a requirement to run these tool every hour with Option -1, Location -2, Region-1
What I am planning to do is to setup the Windows Schedular, which will call these EXE, but the problem is how can I provide the input which in may case (1, 2, 1) respectively to the console tool.
I am thinking is there is any way that I can provide the input upfront in the command line itself...
Eg C:\MyTool.exe << 1 2 1 So that I can create batch file of these command and schedule it accordingly.
Please suggest.
Thanks, Siraj