|
[Windows Embedded CE 6] Launch a .exe Hi,
I'm trying to launch a .exe in a html page under Windows Embedded CE 6. I
tried this two scripts. They work on Vista but not on WinCE 6.
<HTML>
<HEAD>
<SCRIPT type="text/javascript" LANGUAGE="VBScript">
function executeCommands(inputparms)
{
var oShell = new ActiveXObject("Shell.Application" );
var commandtoRun = "\\Temp\\app.exe";
if (inputparms != "" )
{
var commandParms = document.Form1.filename.value;
}
oShell.ShellExecute(commandtoRun, commandParms,"", "open", "1" );
}
</SCRIPT>
</HEAD>
<BODY>
<FORM name="Form1">
<CENTER>
<BR><BR>
<H1>Execute PC Commands From HTML </H1>
<BR><BR>
<File Name to Open:> <Input type="text"
name="filename"/>
<BR><BR>
<input type="Button" name="Button1"
value="Run Notepad.exe" onClick="executeCommands()" />
<BR><BR>
<input type="Button" name="Button2" value="Run Notepad.exe with Parameters"
onClick="executeCommands(' + hasPARMS + ')" />
</CENTER>
</BODY>
</FORM>
</HTML>
And the second:
<script language="VBScript">
sub lancement()
Set WshShell = CreateObject("WScript.Shell")
WshShell.run "\\Temp\\App.exe"""""
end sub
</script>
Any ideas to make them work on Windows CE ? |