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

263 views      
Thread locked
 

Messages in this Thread

 
95,045 Postings in 11,981 Threads, 349 registered users, 30 users online (0 registered, 30 guests)
Index | Admin contact |   Forum Time: Jul 12, 2020 - 9:32 am EDT  |  Hits:32,130,944  (9,266 Today )
RSS Feed