Implemented selenium grid with two remote nodes, converted an AUTO-IT script to exe and need this to be passed via selenium scripts. Another option is to include PsExec on Jenkins pre/post builds. Will need to repeat this process with another user.
Please advice..
Selenium Code -
String path = "d:";
Process process = Runtime.getRuntime().exec("cmd /c start /wait" + path + "\\ActivateWindow.exe");
process.waitFor();
PsExec on Jenkins -
psexec \machinename -accepteula -i 0 -u machinename\username -p password d:\ActivateWindow.exe