CLovis Cormenier

CLovis Cormenier

  • 2.2k
  • 2
  • 2.8k

C# IE toolbar button runs bat script. works only once.

Apr 30 2013 5:58 AM

I have an IE toolbar with a button that runs a bat script with Process.Start. I tried also with a PS script.
When I open IE, the button works. As soon as I navigate to another address or open a new tab, it fails running the script.
I think it has to do with the toolbar restarting each time I navigate to a new address or open a new tab.
private void assign_Click(object sender, EventArgs e)

Any help appreciated.