variables in TC?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
sorex
Junior Member
Junior Member
Posts: 42
Joined: 2003-08-04, 12:02 UTC

variables in TC?

Post by *sorex »

Hello,

I just installed the latest version of Total Commander and tried to do something that doesn't seem to be possible...

what I try to do is..

do a search of files
dump the list of found files to the listbox
pack those as seperate files BUT store the archive in the same path as it is in the list

problem is when you have

\test\test.doc
\test\test2\test2.doc

both files will end up under \test\
if you select file 2 it will go under \test\test2\ which is correct

so it's not sending the path for the 2nd file, an option is
that I add to the command something like

zip:"%path%%filename%.zip" but I didn't find anything about such thing in the help file.

what are my options besides doing it file by file (got 85000 of those xls files here :o/ ) ?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I would suggest the makebat plugin together with an external zip packer, e.g. the free infozip. Makebat is very flexible with its parameters. You can find it on our plugins page:
http://www.ghisler.com/plugins.htm
Author of Total Commander
https://www.ghisler.com
sorex
Junior Member
Junior Member
Posts: 42
Joined: 2003-08-04, 12:02 UTC

Post by *sorex »

cool tool, but I'm missing the filename only shortcut

something line %F that gives filename when the file is filename.ext

i need to split it up so that I can change the extension to .zip otherwise the archive tool (winrar) gives corrupt archive errors
sorex
Junior Member
Junior Member
Posts: 42
Joined: 2003-08-04, 12:02 UTC

got it working & found a bug in TC

Post by *sorex »

never mind, got it working by storing it as filename.ext.zip

btw, TC can't store the line below bcoz of the leading ending quotes

"c:\program files\winrar\winrar" a "%P%N.zip" "%P%N"

it stores it in the listbox as

c:\program files\winrar\winrar" a "%P%N.zip" "%P%N
Post Reply