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

Apr 30 2013 5:58 AM
Hi,

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)
{                   
Process.Start("c:\\users\\ccormeni\\Documents\\scripts\\openoneinc.bat");
}

Any help appreciated.

Clovis