How to realize unpacking and batch processing of documents by CHM
This article mainly introduces CHM how to achieve document unpacking batch processing, the article introduces in great detail, has a certain reference value, interested friends must read it!
HH's temper is that the target folder path does not support spaces or quotation marks, so it becomes a bit more complicated, otherwise one line of command is sufficient
Other codes are not difficult, but focus on practicality.
The batch code is as follows:
The code is as follows:
The format of the main command is as follows
:: hh-decompile destination folder CHM source file name
The destination folder and file name cannot be in quotation marks, and the destination folder cannot contain spaces
@ echo off & setlocal enabledelayedexpansion
Title CHM document unpacking batch By SunTB
If exist "% ~ dpnx1" (
Set file=%~dpnx1
Set file_pth=%~dp1
Set fileholders, pthmans, lanterns, lambda, mahogany, etc.
Set file_name=%~nx1
) else (
Echo.&echo Please enter the full path of the CHM file:
Echo.&set / p file=
Set filekeeper files: "=!
Call: pthquery
)
If / I not "! file:~-4!" = ".chm" (echo.&echo the file type name is not .CHM, press any key to exit & pause > nul&exit)
Set savekeeper pthorium fileholders name: =!
Cd / d "! file_pth!"
Hh-decompile! savehands, file_name, file_name!
Start "!"! file_pth!\! saveflowers, pthpurs, flowers, squares, squirts, squares, squares, etc.
Exit
:: extract the folder path and file name from the manually entered path
: pthquery
Set / a pthx+=1
If "! file:~-%pthx%,1!" = "\" (
Set fileholders, televisions, televisions, mosaics, etc.
Set fileholders nameplates filesupery colors color% PTX%!
Set fileholders nameplates fileholders namevision 1!
Goto: eof
)
Goto: pthquery
The above is all the contents of the article "how to unpack and batch CHM documents". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!