Skip to content

Instantly share code, notes, and snippets.

@DavidDeSloovere
Created January 4, 2013 08:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidDeSloovere/4450908 to your computer and use it in GitHub Desktop.
Save DavidDeSloovere/4450908 to your computer and use it in GitHub Desktop.
Open up an old school .CHM help file from a network path. Put the Powershell in the folder of the .CHM file and any user can launch the help file via right-click on the .PS1 and selecting 'Run with Powershell'. (Set-ExecutionPolicy might need to be set first)
$tempfolder = $env:TEMP
$chmfile = Get-ChildItem | Where-Object {$_.Extension -match "chm"}
"Copying to local temp folder: $tempfolder"
Copy-Item $chmfile $tempfolder
"Opening $chmfile"
Start-Process $tempfolder\$chmfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment