Can I start WinHelp from the command line? Can I display a specific topic when I do?
Yes. Both WinHelp 3.1 and 4.0 files can be started from the command line, using one of several switches to display a topic: winhelp.exe [-K keyword] [-N context-number] [-I topic-id] HLP- filename winhlp32.exe [[-H] [-G[n] [-S]] [-W window-name] [-K keyword] [-N context-number] [-I topic-id] [-P popup-id] HLP-filename] WinHelp 3.1 uses WINHELP.EXE and WinHelp 4.0 uses WINHLP32.EXE, but the switches used to display a topic are the same. Note that Winhlp32.exe has additional switches (see command line switches in HCW.HLP), including one that’s not documented. The -S switch is used with the -G switch to create the .GID file during a programs setup. Using -S hides WinHelp, so the user doesn’t see the “Preparing Help file for first use” message. It should not be used with any other switch.