View Single Post
Old 06-17-2009   #2 (permalink)
Al Dunbar


 
 

Re: [Windows Embedded CE 6] Launch a .exe


"Kentin" <Kentin@xxxxxx> wrote in message
news:0F3F1DF8-85AC-4383-BF18-472192F3A63B@xxxxxx
Quote:

> 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.
Either re-write your script in vbscript so it will be on-topic, or post your
question in a jscript or javascript newsgroup.

/Al
Quote:

> <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 ?
>


My System SpecsSystem Spec