PDA

Click to See Complete Forum and Search --> : Launching Frontpage2000 from IE using VBScript? HELP!


MichaelK
May 3rd, 2000, 12:56 AM
Hi,
I've been trying for a loooong time to try to get this to work properly. First I tried to do this in just VB., but for some reason when I tried to open a file locally, it adds a "\" to the beginning of it, so it can't find the file. When I tried it in VBScript in IE5, it doesn't do anything at all.. This is what I have:

<HTML>
<HEAD>
<SCRIPT LANGUAGE=VBScript>

Sub Btn1_onclick()
Dim obj
Set obj = CreateObject("FrontPage.Application")
obj.Webs.Open("c:\test.html")
End Sub

</SCRIPT>
<TITLE>Launch Word</Title>
</HEAD>
<BODY>
<INPUT TYPE=BUTTON NAME=Btn1 VALUE="Open Frontpage">
</BODY>
</HTML>

Thanks for any help you guys can give!
If anyone can actually tell me how to make IE5 host frontpage instead of launching it, it would be even better!

lychew
May 3rd, 2000, 08:40 AM
Correct me if i'm wrong....

I don't think you can just use VBscript to open client application as simple as that. Cause there's always security issue. As i know in applet, if you want to write or read or execute files in the client side, you will need to sign your applet first.

As for ASP... remotely open another program?? I'm really interested in knowing how cause i don't think you can. If anybody got the solution, please share with me.

MichaelK
May 3rd, 2000, 10:44 PM
Hmm.. I don't think that's it, because I'm able to launch microsoft Word (by replacing Frontpage.application to Word.application). Thanks for trying though!