I am writing for my desktop some application for handling some services. I wrote in C# an application that calculates something (lets call it cl.exe) I created a .bat file that starts the cl.exe. I want to call that .bat file from my javascript so I WShell.Run(**.bat).
2 question:
Thanks
To make it wait, the 3rd parameter of WShell.Run should be set to true. See http://msdn.microsoft.com/en-us/library/d5fk67ky(VS.85).aspx
In that case, WShell.Run also returns the return value of the batch file. If I remember correctly, the bat file will return the error code from the last executable run. If not, you can set it with the batch EXIT
command