Hi,
I am creating an extremely simple application that simply sends a character down the serial port to a electronic switch to make it switch back and forth.
At the moment I have the communication between application and serial port working good by means of clicking 2 buttons on a form making it switch back and forth.
Now I need to take it to the next level. My application gets called by another application and is passed a parameter to tell it to open, switch and close
It is called in this way:
TriggerExternalSwitch.exe 1 (Switch to channel 1)
TriggerExternalSwitch.exe 2 (Switch to channel 2)
How do I make the application to expect a parameter when called and act accordingly?
I appologise if its a newbie question but Im not a coder for a living
I am creating an extremely simple application that simply sends a character down the serial port to a electronic switch to make it switch back and forth.
At the moment I have the communication between application and serial port working good by means of clicking 2 buttons on a form making it switch back and forth.
Now I need to take it to the next level. My application gets called by another application and is passed a parameter to tell it to open, switch and close
It is called in this way:
TriggerExternalSwitch.exe 1 (Switch to channel 1)
TriggerExternalSwitch.exe 2 (Switch to channel 2)
How do I make the application to expect a parameter when called and act accordingly?
I appologise if its a newbie question but Im not a coder for a living