Hi all,
I have been working on my Windows Forms C# project but have encountered a slight hitch.
I have a button that when pressed runs a command in command promp, i need to find a way for my application to run an event (if statement) if a keyword appears in the command prompt.
For example:
Button pressed
Command promp opens and command is executes
If keyword (e.g. “failed”) then “IF” statements runs.
Thanks in advance for ant replies 🙂
I’ve not tried this, but this Stack Overflow post seems like it should have what you need.
Hmm it’s definitely similar but it doesn’t check for a keyword as far as I can see?