Running WINHELP.EXE with Command Line SwitchesLast reviewed: July 23, 1997Article ID: Q115183 |
3.10
WINDOWS
kbtool
The information in this article applies to:
SUMMARYIt is possible to use certain command-line arguments on the running of WINHELP.EXE to go immediately to areas of the help file other than the contents.
MORE INFORMATIONWhen calling WINHELP.EXE, but before specifying the help file name, use the following switches:
-k Go to keyword (set up with the K footnote within the help file). -n Go to context number (set up with the # footnote within the help file). -i Go to context ID (set up with the # footnote within the help file using a #defined string). -h Run WINHELP.EXE with the WINHELP.HLP file (no other help file is necessary). EXAMPLESThe following examples can be tested by typing them into the Run dialog box that opens when you choose Run from the File menu in the Program Manager. To run the file MYHELP.HLP and jump to the keyword "jumphere", type the following:
WINHELP.EXE -kjumphere myhelp.hlpTo run the file TEST.HLP and jump to the topic with context ID number 101, type the following:
WINHELP.EXE -n101 test.hlpTo run the file CIJUMP.HLP and jump to the topic with context ID "MY_JUMPID" (which had previously been set within the .HLP file with #define MY_JUMPID 102), type the following: WINHELP.EXE -iMY_JUMPID cijump.hlpTo run the file "Help on Help", type the following:
WINHELP.EXE -h |
Additional reference words: 3.10 hc hcp
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |