Can this be done with TC?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
jpcv
Junior Member
Junior Member
Posts: 28
Joined: 2003-02-11, 15:35 UTC
Location: Uruguay

Can this be done with TC?

Post by *jpcv »

I'd like to do something like this with files in one pane

for %%f IN (*.zip) do zip -add "%%f" test.txt

The files selected in one pane will be the set of files.
The command after the "do" could be anyone.

Any Ideas?
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

Try use %L parameter for creating filelist file and pass this parameter into batch file like this:
for /F %%i in (%1) do @echo %%i
FRANCISCO J. ARRILLAGA
Junior Member
Junior Member
Posts: 13
Joined: 2003-05-12, 13:58 UTC

Can this be done with TC?

Post by *FRANCISCO J. ARRILLAGA »

The syntax correct will be

for %f IN (*.zip) do zip -add %f test.txt

(at least, I can use this syntax without problem, WHEN I use shift+Intro for execute the command).

The syntax works fine (on my use)

command /c for %f IN (*.zip) do zip -add %f test.txt

where command is your command interpreter (CMD.EXE, COMMAND.COM, etc.).
User avatar
jpcv
Junior Member
Junior Member
Posts: 28
Joined: 2003-02-11, 15:35 UTC
Location: Uruguay

Post by *jpcv »

THX, I'll try
Post Reply