How to Run a WB EXE when User Clicks on a Link in Netscape
Keywords: Netscape MSIE Microsoft Internet Explorer browser
Question:
Can Winbatch enable launching of a Windows program from a WB batch file so that it can be used from within Netscape? If yes, does Winbatch have to be installed on every computer which would make use of the utility? We would like to launch Windows programs from within Netscape, but in a mixed environment of NT and 3.1 OS...would each version of Winbatch be needed? Thanks...Answer:
I think what you want to do is enable some mechanism so that when a user clicks on a link in Netscape, it can cause a program to load locally.If that is the limit of what you need to do - and you need to support both Windows 3.1 and Windows NT platforms. I recommend the following.
- One copy of WinBatch+Compiler.
- Write one "helper" script as follows, compile to an large exe with the compiler and install on all workstations.
;---snip--- if param0==0 Message("Ooops","Bad link. Contact WebMaster") else call(param1,"") endif ;-----snip----- Define this script to all the netscape as a "helper" application for the WBC filetype.
- Now write the scripts you need. Perhaps:
;----snip--- Run("notepad.exe","c:\config.sys") ;-----snip-----and compile (using compiler encode option) to wbc files. Say you name it, config.wbc.
- Use links in your browser like:
...HREF="config.wbc">Edit Config.sys...Something like that anyway.
Article ID: W13358Filename: Run WB EXE when User Clicks on Netscape Link.txt