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

Winbatch Studio
plus

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

Keyword Lookup Not Working

Keywords: 	   Keyword Lookup Not Working Winbatch Studio

Question:

When editing in "WB Studio" I used to be able to: right click on a highlighted WBT function, click on "keyword lookup" on the displayed menu and a very nice, manual type, presentation for the function would come up on the screen.... Now when I do the above I get a horrible box that knows nothing about the manual page for, say, FileOpen. This box is entitled "Get Help Topics: WMI ..."!

Can you tell me what to do?

Answer:

Hmmm. Well some pointer has goine wrong.

The problem - what ever it is - can be fixed by editing a file with a normal text editor like Winbatch studio.

The problem will be in the (for a normal install, the c:\program files\winbatch\system\help directory.

Probably one of the weh files like weh.

In any event here is the flow of operations that *should* occur, and you can see if you can follow it.

Then you try to get help for a keyword, the keyword is extracted from the script and held in a variable. The type of the file is also determined, mostly, in this case, WIL file or not. For WinBatch Studio it makes little difference.

Then the WSHELP.INI file is examined for a list of help files. Based on the help file name, a WEH file name is obtained by replacing the .hlp with a .weh.

Then, one by one, the WEH files are queried to see if they define the work you are looking for. In this case the first help file HF1 points to WIL.HLP and by the above substitution WIL.WEH.

The WIL.WEH file is examined to see if it lays claim to the definition of FileOpen. In this case it should.

Then at the top of the WIL.WEH file in the LOOKUP section there should be a Located= which has the exact location of the desired help file. And then the desired help file is instructed to open displaying the command.

I suspect the "Located" variable in your WEH file got changed to maybe point to the WMI help file and this is causing all sorts of grief. Maybe edit the WIL.WEH file so it points to the right place, assuming this is the problem.

Problem with WSHELP.INI typo:

Some people are running into a problem in WSHELP.INI: the value HF19= in both the WIL and DEFAULT sections was actually entered as FH19=. If you clean that up, your original files should work fine. The LOCATED= value is automatically added to the .WEH file the first time that the target help file is successfully loaded.
Article ID:   W15775
File Created: 2003:05:13:11:30:02
Last Updated: 2003:05:13:11:30:02