"Jeff" <jeff@xxxxxx> wrote in message news:ukqzk$9RIHA.4196@xxxxxx
> I downloaded the powershell.chm file, and setup the Get-GuiHelp command. BTW I found the Get-GuiHelp function to violate the DRY principle so I tweaked it:
# Contents of Get-GuiHelp.ps1 script file
param($topic)
function LaunchPowerShellHelp($topicPath) {
hh.exe "mk:@MSITStore:$PSHome\PowerShell.chm::/$topicPath"
}
if (!$topic) {
LaunchPowerShellHelp 'test.htm'
}
elseif ($topic.contains("about_")) {
LaunchPowerShellHelp "about/${topic}.help.htm"
}
elseif ($topic.contains("-")) {
LaunchPowerShellHelp "cmdlets/${topic}.htm"
}
else {
if ($topic.contains(' ')) {
$topic = $topic -replace ' ',''
}
# VBScript to PowerShell translation section
LaunchPowerShellHelp "vbscript/${topic}.htm"
}
This function assumes you have copied the PowerShell.chm file into the $pshome dir.
--
Keith