WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

URLs - Web - Browser Topics

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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.

  1. One copy of WinBatch+Compiler.

  2. 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----
    
  3. Define this script to all the netscape as a "helper" application for the WBC filetype.

  4. 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.

  5. Use links in your browser like:
    	...HREF="config.wbc">Edit Config.sys...
    
    Something like that anyway.

Article ID:   W13358
Filename:   Run WB EXE when User Clicks on Netscape Link.txt
File Created: 1999:04:15:16:53:28
Last Updated: 1999:04:15:16:53:28