Created
January 4, 2013 08:30
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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