I am launching notepad.exe
using javascript and passing parameters to it using following script. It launches notepad.exe
but prompts that Hello World.txt does not exists. Do you want to create?
Any Idea/Suggestion to pass parameter and make notepad.exe
written with Hello World
function passParam()
{
try{
//get brwosers details
var isIE = /*@cc_on!@*/false || !!document.documentMode;
if(isIE == true)
{
var oShell = new ActiveXObject("Shell.Application");
var filePath = "C:\\Windows";
var fileName = "notepad.exe";
var commandParms = "Hello World!";
oShell.ShellExecute(fileName,commandParms,filePath,"open","1");
return;
}
alert("Please use only IE to launch navigator.");
}
catch(e){
alert("Error:"+e.message);}
}