ZTree.com  | ZEN  | About...  

 Index   Back

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

By: Slobodan Vujnovic   Homepage   France  
Date: Dec 18,2019 at 18:26
In Response to: [Help!] Batch on tagged files (Laurent Duchastel)

Basically, you create the list of the tagged files using:
REM #ZTtag C:\TAGGED.LIS
and then feed this list to a FOR loop process:
@FOR /f %%%%i IN (C:\TAGGED.LIS) DO CALL [your_process] %%%%i

Check if the above works by first using the simplest possible process:
@FOR /f %%%%i IN (C:\TAGGED.LIS) DO echo %%%%i

[your_process] could be an external .BAT, or you can CALL a :label
in the same file, which "returns" with GOTO :EOF as its last line.

This is taken from some examples I did ages ago, hopefully,
they still work:
http://vujnovic.free.fr/ztw/ztw_menu.html#Dir_6

148 views      
 

Messages in this Thread

 
94,800 Postings in 11,952 Threads, 348 registered users, 9 users online (0 registered, 9 guests)
Index | Admin contact |   Forum Time: Mar 31, 2020 - 7:04 pm EDT  |  Hits:30,520,157  (4,388 Today )
RSS Feed