Click to See Complete Forum and Search --> : Launching from HTML link


jpowers
October 26th, 1999, 09:00 AM
Does anyone know how to get a VB application local on the client machine to launch from an HTML link on the web browser AND be able to receive a command line parameter readable from the Command$ function?

Lothar Haensler
October 26th, 1999, 09:12 AM
AFAIK there are no direct ways of doing what you want, but a few workarounds:
- if your local app exports a COM interface you could use client-side DHTML scripting and invoke your program using CreateObject syntax from VBScript.

- write an ActiveX control that allows starting of apps with parameters. This one won't be "safe for scripting", though, because someone might want to use it for "format C:"

- do it the same way as MS does it for REG files:
register your app with a certain file extension and add a file URL with your extension (.MYF) and have the user click on it. This will launch your app with the given file name. You can then read the parameters from the file.