![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | [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 ? |
My System Specs![]() |
| | #2 (permalink) |
| | 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. 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 Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Latest Windows Embedded CE includes Silverlight. | Vista News | |||
| VISTA won't play embedded windows movie | Vista music pictures video | |||
| Embedded graphics in Windows Mail | Vista mail | |||
| Windows Vista WILL NOT play embedded Windows Media Player if content DOES NOT have TAGS | Vista General | |||
| Windows Vista CANNOT play some embedded Windows Media!!!! | Vista General | |||