There is a myFirst.asp in which there is a button, on click i want a specific jar to be run but using vbscript i am able to do so but as u know only IE support this vbscript functionality. I am looking a way i can run my jar at any platform using any browser. using asp or vbs or jquery by anyway it could happen. PLZ help Thanks in Advance.
myFirst.asp
<script type="text/javascript">
function runMyCommand(){
var wshshell = new ActiveXObject("shell.application");
wshshell.ShellExecute("cmd.exe", 'java -jar "C:\\Program Files\\MyServer\\bin\\mporter.jar" "C:\\license.file" ', "C:\\WINDOWS\\system32", "open", 1);
wshshell=null;
}
</script>
or can use this one
function runMyCommandASP() {
$.ajax({
type: "POST",
url: "managemporter_launch.asp/AnalyzeRequest",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
Alert("you got it");
}
});
<INPUT type="button" size=200 value=" Run porter " runat="server" id=Button1 name=btnExport title="Launch porter" onClick="javascript:runMyCommandASP()">
and looking jar to run at position
java -jar "C:\\Program Files\\MyServer\\bin\\mporter.jar" "C:\\license.file"
using javascript or asp or vbs