Permalink
Browse files

Create printCHM.bat

  • Loading branch information...
npocmaka committed Apr 23, 2015
1 parent 018112d commit 042fb632f2ead910784e102b90d5f14d03e84fb5
Showing with 20 additions and 0 deletions.
  1. +20 −0 printing/printCHM.bat
View
@@ -0,0 +1,20 @@
@echo off
if "%~1" equ "" (
echo usage:
echo %~n0 file.chm
exit /b 1
)
if "%~x1" neq ".chm" (
echo you need a file with .chm etension
exit /b 2
)
start "" /b /wait hh -decompile ~~ %~sf1
for /r "~~" %%h in (*.htm) do (
rundll32.exe "%systemroot%\system32\mshtml.dll",PrintHTML "%%~fh"
)
rd "~~" /s /q >nul 2>nul

0 comments on commit 042fb63

Please sign in to comment.