TCBL new version (1.04 )

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
nsp
Power Member
Power Member
Posts: 1803
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: crashes, too

Post by *nsp »

ramses wrote:i have problem with crashes, too. in the past sporadically, now permanent.
in a dos box, when i want start tcbl.exe or tcbl64.exe i get immediate a message box "tcbl has stoped working", no output.
i have win7 64 prof.
I detected some error on X64 System after a system update, i did a small change that seems to work for my colleagues. Can you confirm if tcbl is still functional for you ?
Can you test the update link : http://tccfestuff.free.fr/tcbl_update.zip
I do not really support 64bit version as we still do not use TC 64Bit except when looking at Win special folder.
Note also that I do not install utilities in Program File folders as I want to have "portable" installation without access to USER folder or registry.
ramses
Junior Member
Junior Member
Posts: 29
Joined: 2006-01-03, 13:59 UTC

Post by *ramses »

it is curious.

I test it again and all versions (old and update, 32 and 64) was working fine.
When i start tcbl.exe in a dos box, i get the usage output.

After restart of the system none of them are working :(

br ramses
User avatar
nsp
Power Member
Power Member
Posts: 1803
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

ramses wrote:it is curious.

I test it again and all versions (old and update, 32 and 64) was working fine.
When i start tcbl.exe in a dos box, i get the usage output.

After restart of the system none of them are working :(

br ramses
I did find another issue if you do not run it with admin rights, can you test the "debug version".
ramses
Junior Member
Junior Member
Posts: 29
Joined: 2006-01-03, 13:59 UTC

Post by *ramses »

the same result as with previous versions, no output.
exe is started as admin.

https://www.dropbox.com/s/5dgk4g6bphyx0nz/2015-11-30_190041.png?dl=0

it seems that maybe some lib is not loaded, when the lib is loaded by an other app, it is working.

br ramses
User avatar
nsp
Power Member
Power Member
Posts: 1803
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

ramses wrote:the same result as with previous versions, no output.
exe is started as admin....
It is quite hard to find but i did find an issue with the clipboard and removed the function the latest ones seems to work even after reboot on my dev VM. http://tccfestuff.free.fr/tcbl-debug.zip

- tcbl.exe 32bit compiled with PellesC
- tcbl32.exe optimized for speed compiled with mingw 32bit (with fix for filesize and wdx)
- tcbl64.exe optimized for speed compiled with mingw 64bit (with fix for filesize no WDX support )
ramses
Junior Member
Junior Member
Posts: 29
Joined: 2006-01-03, 13:59 UTC

Post by *ramses »

good news, all three variants are working fine after reboot.
the old version crashes (neg test)

you mentioned the clipboard, when there is something in the clipboard, then the old version is working, too.

THANK YOU for your support!

br ramses
User avatar
nsp
Power Member
Power Member
Posts: 1803
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

ramses wrote:good news, all three variants are working fine after reboot.
the old version crashes (neg test)

you mentioned the clipboard, when there is something in the clipboard, then the old version is working, too.

THANK YOU for your support!

br ramses

2Ramses / 2Hurdet

THANK YOU for your help and report !

I updated to 1.03a with clipboard fix !
The ClipBoard parameter $K is interpreted (only once) and can be used to build dynamic call ex:
You have in your ClipBoard: [face=courier]$! MD5 = %MD5@hashsys.wdx% $![/face]
If you call [face=courier]TCBL -q FileList @echo File $n in $p $K $A hash.txt[/face]
you will get all MD5 hash in a hash file
if you change the clipboard to[face=courier] Size = $#SKKb[/face] you wil get the size instead of the MD5 hash ....

Alternatively you can use TCBL with askparam to have nice UI to enter parameter....
User avatar
nsp
Power Member
Power Member
Posts: 1803
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

set console title

Post by *nsp »

Added ability to change console title..

Code: Select all

[titleSample]
ini=t	New Console Title....
cmd=echo $f
end=pause
Fixed an issue with $; on command line.
Updated code of slre..
Hurdet
Power Member
Power Member
Posts: 620
Joined: 2003-05-10, 18:02 UTC

Re: TCBL new version (1.04 )

Post by *Hurdet »

I try to create a command in usercmd.ini:
"filename_%03d.exe"
with
"$p$z%%03d.$e"
but it replace the batch temp filename.
instead
"$p$z%03d.$e"
not write %
How to do?
User avatar
nsp
Power Member
Power Member
Posts: 1803
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: TCBL new version (1.04 )

Post by *nsp »

Hurdet wrote: 2020-01-10, 08:03 UTC I try to create a command in usercmd.ini:
"filename_%03d.exe"
with
"$p$z%%03d.$e"
but it replace the batch temp filename.
instead
"$p$z%03d.$e"
not write %
How to do?
I do not understand what is "$p$z%%03D.$e" mean!
Can you be more explicit about what you want to achieve ?

A) Do you use an tcbl.ini command with parameter -i or directly using only TC parameter to create your tcbl command ?

If you use % char, you will have to pay attention on the calling chain:

if you want to have %0 as a final string for the batch, In TC parameter, you will have to write inside TC %%%%0 as :
First call (TC -> TCBL) reduce %%%% to %% and second call (interpreted batch) will reduce %% to %

if you write %%0 in TC, you will have %0 created in the bat file and then converted to temporary bat file name. %0 inside a batch script is the calling BAT FILE.
Hurdet
Power Member
Power Member
Posts: 620
Joined: 2003-05-10, 18:02 UTC

Re: TCBL new version (1.04 )

Post by *Hurdet »

%%%% solved, ty.
User avatar
kesdoputr
Member
Member
Posts: 168
Joined: 2007-12-27, 12:38 UTC

Re: TCBL new version (1.04 )

Post by *kesdoputr »

Hello, i tried to use your great tool to make filelist to look like the format

Code: Select all

file 'path1/file1'
file 'path2/file2'
I try below command and it's work to make filelist to target panel

Code: Select all

[em_test]
cmd=%COMMANDER_PATH%\TOOLS\tcbl.exe
param=-q %L echo file '$f'$A %Tfilelist.txt
But if target panel dir's name has space, the filelist can't produce on correct postion.
I have tried "%T\"filelist.txt、"%T"filelist.txt、"%Tfilelist.txt"、"%T\filelist" but all can't work
How should i improve my cmd?

Thanks for your reading.

BTW.if i just use copy, the "%Tfilelist.txt" is work even when target panel contains space

Code: Select all

[em_test3]
cmd=cmd /c copy
param=%L "%Tfilelist.txt"
User avatar
nsp
Power Member
Power Member
Posts: 1803
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: TCBL new version (1.04 )

Post by *nsp »

kesdoputr wrote: 2020-05-18, 17:29 UTC Hello, i tried to use your great tool to make filelist to look like the format

Code: Select all

file 'path1/file1'
file 'path2/file2'
I try below command and it's work to make filelist to target panel

Code: Select all

[em_test]
cmd=%COMMANDER_PATH%\TOOLS\tcbl.exe
param=-q %L echo file '$f'$A %Tfilelist.txt
But if target panel dir's name has space, the filelist can't produce on correct postion.
I have tried "%T\"filelist.txt、"%T"filelist.txt、"%Tfilelist.txt"、"%T\filelist" but all can't work
How should i improve my cmd?

Thanks for your reading.

BTW.if i just use copy, the "%Tfilelist.txt" is work even when target panel contains space

Code: Select all

[em_test3]
cmd=cmd /c copy
param=%L "%Tfilelist.txt"
Hi fot the first definition:
-q means that You and TC manage quotes the %TFilelist.txt is managed by Total commander, then call to TCBL then inside the batch. To be safe, you have to use """" instead of single "...
So the correct command should be:

Code: Select all

[em_test]
cmd=%COMMANDER_PATH%\TOOLS\tcbl.exe
param=-q %L echo file '$f'$A """"%Tfilelist.txt""""
In general when testing how the bat file will be generated, you can use the edit option e you will see in notepad the resulting bat file before launch.

for the em_test3
without any quote
TC manage to add quote for being identified as a single parameter

In your case the best is probably to directly use a tcbl function inside tcbl.ini like the following:

Code: Select all

[filelist]
ini=o $1\filelist.txt
ini=x
ini=q
ini=K
cmd=file '$f'
call from TC:

Code: Select all

[em_test]
cmd=%COMMANDER_PATH%\TOOLS\tcbl.exe
param=-i %L filelist "%T"
User avatar
kesdoputr
Member
Member
Posts: 168
Joined: 2007-12-27, 12:38 UTC

Re: TCBL new version (1.04 )

Post by *kesdoputr »

Oh it works like a charm, the method use tcbl.ini seems more better.

Thanks for you reply.
User avatar
kesdoputr
Member
Member
Posts: 168
Joined: 2007-12-27, 12:38 UTC

Re: TCBL new version (1.04 )

Post by *kesdoputr »

Hello, sorry for another question, i want to use tcbl to make a playlist with PLS format

Code: Select all

[playlist]
file=path1\file1
file=path2\file2
I write in tcbl.ini

Code: Select all

[playlist]
pre=[playlist]
ini=o $1\playlist.txt
ini=x
ini=q
ini=k
cmd=file=$f
And create a tc cmd

Code: Select all

[em_playlist]
cmd=%COMMANDER_PATH%\PLUGINS\ETC\tcbl.exe
param=-i %L playlist "%T"
It's work good as my wish, but i found if path or file has non-english name(like chinese or japanese)
The char will become ? so player can't play them.
I have view the readme and found below

Code: Select all

	ini=C codepage
		set codePage.
I try to add ini=C 65001 in tcbl.ini but it's seem not work, am i understand wrong?
If it is possible to make a listfile with UTF-8 or UTF-16LE etc..?

Thanks for your reading.
Post Reply