Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - [Windows Embedded CE 6] Launch a .exe

Reply
 
Old 06-16-2009   #1 (permalink)
Kentin


 
 

[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 SpecsSystem Spec
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
Reply

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


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46