Running Command Wscript.shell ActiveX In Javascript
I have a webpage that needs to run a program by ActiveX with some parameters. I get those parameters with the following bit of JavaScript: var var1 = getUrlParameter('par1', false)
Solution 1:
After some more hours of trying if found it!
MyObject.Run('"C:\\Path with\\some spaces\\program.exe"' + " " + "D:\\pathtoafile" + " " + "/PARAM:/para1="+var1+"\,/para2="+var2+"\,/para3="+var3+"\,/para4=\""+var4+"\"");
Post a Comment for "Running Command Wscript.shell ActiveX In Javascript"