Here 's how to do that using ActiveX object. Code: function executeCommands(inputparms) { // Instantiate the Shell object var oShell = new ActiveXObject("Shell.Application"); var commandtoRun = "C:\\Programs\\YourCProgram.exe"; // Invoke the execute method. oShell.ShellExecute(commandtoRun, commandParms, "", "open", "1"); }