ZTree.com  | ZEN  | About...  

 Index   Back

[Help!] Batch on tagged files   [Help!]

By: Laurent Duchastel     Montréal, Québec  
Date: Dec 18,2019 at 23:27
In Response to: [Help!] Batch on tagged files (Ben Kent)

> > Hi,
> >
> > I have many comics in both cbr (rar) and cbz (zip) formats. My most
> > recent reader however doesn't support well cbr. I want to convert
> cbr's
> > into cbz's.
> >
> > Here is the F9 script that works well on an individual file.
> >
> > ::- Convert cbr into cbz
> > #ZTTools\rar x -r -AD %1 "%TEMP%"
> > #ZTTools\7z.exe a -tzip "%4.cbz" "%TEMP%\%4\*" -r -mx9 -stl
> > -sdel
> > rmdir "%TEMP%\%4" /Q
> >
> >
> > What script would do the same operation on a set of tagged files?
> >
> > Thank you in advance
>
> Laurent
>
> I use this general form to handle the current file if no tagged files,
> or work through the tagged files.
>
> Replace "Echo process %%1" with your doing code.
>
> ====================
> 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
> Echo process %%1
> goto :eof
> ====================
>
> Ben


Thank you Ben

Thought about this but I need a mix of %1 and %4 in the subroutine.
How can I do this?


Laurent Duchastel

965 views      
Thread locked
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 49 users online (0 registered, 49 guests)
Index | Admin contact |   Forum Time: Mar 28, 2024 - 4:23 pm UTC  |  Hits:62,372,763  (25,160 Today )
RSS Feed