@echo off
title "Built-in CHM decompiling function in the system!"
echo "Note: there must not be spaces in the chm file!"
echo "Script written by: PeterDocter"
echo "2007-04-18"
path %windir%;%windir%\system32
echo Decompinling...
for /f "tokens=*" %%I in ("%1") do (
rem short Chm filename
set Chm=%%~nxsI
rem create full directory
set ChmDir=%%~nI
rem full path
set ChmPath=%%~dpI
)
rem switch to target path
cd /d %ChmPath%
if not exist "%chmDir%" md "%chmDir%"
rem HH decompile parameters
HH.EXE -decompile %chmDir% %Chm%
echo All files in the %chmDir%!
pause
exit
I want to add a right-click mouse function, but unfortunately I don't know how to do it. Also, when the chm file contains spaces it gets rather troublesome! Please see if anyone can optimize this code a bit?
[ Last edited by peterdocter on 2007-4-19 at 04:38 AM ]
title "Built-in CHM decompiling function in the system!"
echo "Note: there must not be spaces in the chm file!"
echo "Script written by: PeterDocter"
echo "2007-04-18"
path %windir%;%windir%\system32
echo Decompinling...
for /f "tokens=*" %%I in ("%1") do (
rem short Chm filename
set Chm=%%~nxsI
rem create full directory
set ChmDir=%%~nI
rem full path
set ChmPath=%%~dpI
)
rem switch to target path
cd /d %ChmPath%
if not exist "%chmDir%" md "%chmDir%"
rem HH decompile parameters
HH.EXE -decompile %chmDir% %Chm%
echo All files in the %chmDir%!
pause
exit
I want to add a right-click mouse function, but unfortunately I don't know how to do it. Also, when the chm file contains spaces it gets rather troublesome! Please see if anyone can optimize this code a bit?
[ Last edited by peterdocter on 2007-4-19 at 04:38 AM ]


