PWBExecute

For general issues related to PWB v2.

Moderators: Tyler, Scott, PWB v2 Moderator

Post Reply
bortero
Observer
Observer
Posts: 6
Joined: Thu Jun 12, 2003 6:13 am

PWBExecute

Post by bortero »

just ignore this, it was the backslashes!

________________________________


i've been reading the posts about PWBExecute, and i'm wondering whether there's something i'm missing here. i created a test page with this content:

<html>
<head>
<script language="JavaScript" type="text/JavaScript">
<!--

function OnClickExecute()
{
window.external.PWBExecute( 'c:\windows\notepad.exe' )
}


//-->
</script>
</head>
<body>
<a href="javascript:OnClickExecute()">TEST</a>
</body>
</html>

when i click on the link, nothing happens. my ini file looks like this:

[Java]
EnableExternalJava=True
JavaExit=
JavaActivity=
JavaRegister=
JavaHideToolbar=
JavaExecute=PWBExecute
JavaReadINIFile=
JavaPrint=
JavaHideAddressBar=

this PWBExecute, is it something you have to install separately? where can i find it?

regards,

bert

Scott
Site Admin
Site Admin
Posts: 2535
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

Post by Scott »

For completeness I will post the answer even though it was the backslashes. :D

You should use either a double backslash or a forward slash in the path to the EXE file.

function OnClickExecute()
{
window.external.PWBExecute( 'C:/windows/notepad.exe' )
}

Using a single backslash can cause PWB not to find the file because the single backslash can have special meaning.

--Scott

Post Reply