ZTree.com  | ZEN  | About...  

 Index   Back

Works very well   [Help!]

By: Laurent Duchastel     Montréal, Québec  
Date: Dec 19,2019 at 19:14
In Response to: [Help!] Batch on tagged files (Laurent Duchastel)

Thanks again.
The script works well for both tagged files or current files!

::- Convert cbr into cbz (Current file or Tagged files)
:: Thanks to Ben Kent for the tagged files/current file routine

REM #ZTTag #ZTTemp\~ZTTag.bat -fCALL #ZTTemp\ZTW_MENU.BAT SUB1 %1
IF [%%1]==[SUB1] GOTO Sub1

SET ZTTagged=False
REM #ZTIfTagged SET ZTTagged=True
IF [%%ZTTagged%%]==[False] (
Call :NoTag %1
) ELSE (
CALL #ZTTemp\~ZTTag.bat
DEL #ZTTemp\~ZTTag.bat
)
PAUSE
goto :eof

:Sub1
SHIFT
:NoTag
#ZTTools\rar x -r -AD %%1 "%TEMP%"
#ZTTools\7z.exe a -tzip "%%~n1.cbz" "%TEMP%\%%~n1\*" -r -mx9 -stl -sdel
rmdir "%TEMP%\%%~n1" /Q
goto :eof


Laurent Duchastel

130 views      
 

Messages in this Thread

 
94,800 Postings in 11,952 Threads, 348 registered users, 25 users online (1 registered, 24 guests)
Index | Admin contact |   Forum Time: Mar 29, 2020 - 8:13 am EDT  |  Hits:30,506,945  (3,239 Today )
RSS Feed