TCBL new version (1.04 )
Moderators: Hacker, petermad, Stefan2, white
I have one question. How can I save the new files to the target path. Parameter is now %L convert -resize 25%%%% -quality 80%%%% $f $x_small.$e If U use the %T parameter it gets an error.I was thinking of putting the %T option before the $x_small.$e.nsp wrote:The problem is due to the % sign :jslegers wrote:Hello,....
I want to convert the selected file with a resize of 25% and a quality of 75%.
...
- Total Commander need escaping
- bat script file also need escaping
So if you want to use % sign, you have to double double it
Hope this help !Code: Select all
Command: <PathTo>\TCBL.exe parameters: %L convert -resize 25%%%% -quality 75%%%% $f $x_small.$e ... ...
instead of using $x_small.$e, you should use "%T$z_small.$e"jslegers wrote: I have one question. How can I save the new files to the target path. Parameter is now %L convert -resize 25%%%% -quality 80%%%% $f $x_small.$e If U use the %T parameter it gets an error.I was thinking of putting the %T option before the $x_small.$e.
$f is the full file name (full path) ex c:\tmp\test.eee
$n is the file name without path ex test.eee
$x is full file name without extension ex c:\tmp\test
$z is file name without extension ex test
(edited for clarity)
new version of my filescript:
now it checks if the file already exists and continues with the last id number.
command: "%commander_path%\addons\tcmd\tcbld\tcbl_new.exe" -I "%commander_path%\.scripts\tcbl\file.ini"
param: %L "list" "%T\genlist.xls" "%%commander_path%%\addons\util\gnu\ssed.exe"
now it checks if the file already exists and continues with the last id number.
command: "%commander_path%\addons\tcmd\tcbld\tcbl_new.exe" -I "%commander_path%\.scripts\tcbl\file.ini"
param: %L "list" "%T\genlist.xls" "%%commander_path%%\addons\util\gnu\ssed.exe"
Code: Select all
[list]
pre=echo off
pre=set mytemp=
pre=set myn=
pre=set list=$1
pre=set ssed=$2
pre=if exist "%list%" goto :list
pre=if not exist "%list%" goto :normal
pre=:normal
pre=set myn=0
pre=echo starting id at: %myn%
pre=goto :start
pre=:list
pre=for /f "usebackq" %%a in (`%ssed% -n "$p" "%list%"`) do set /a mytemp=%%a
pre=set myn=%mytemp%
pre=echo starting id at: %myn%
pre=goto :cont
pre=:start
pre=echo id fullfilename name parent gparent ggparent sizeB sizeKB sizeMB sizeGB datetime ext id_hd > "$1"
pre=:cont
cmd=if exist $v:\.id set /p myid=<$v:\.id
cmd=echo output:$i
cmd=set /A myn=%myn%+1
cmd=set /A myi=%myn%+1
cmd=REM echo sizebyte: $#Sb
cmd=echo %myn% $f $n $p1 $p2 $p3 $!%Size@DirSizeCalc.wdx%$! =G%myi%/1024 =G%myi%/(1024*1024) =G%myi%/(1024*1024*1024) $#m $e %myid% >> "$1"
end=PAUSE
TCBL ) new version 0.980
-- Added ini section
-- More path from files
-- bugfix when file name contains "$?" in some specific sequence.
For more info see here or first message
-- More path from files
-- bugfix when file name contains "$?" in some specific sequence.
For more info see here or first message
Hi !
In your case i do not see the repetitive task, tcbl is suitable if you want to mount a lot of iso files at once.
To unmount there is no parameters, i can suggest you either to make bat file or to call directly using such command:
if ypou want to mount the current iso file you can also do it using:
dlite.exe must be in the path if not, replace it by the full name.
In your case i do not see the repetitive task, tcbl is suitable if you want to mount a lot of iso files at once.
To unmount there is no parameters, i can suggest you either to make bat file or to call directly using such command:
Code: Select all
program : cmd
parameters : /c dtlite.exe -unmount & dtlite.exe -remove 0
Code: Select all
program : cmd
parameters : /c dtlite.exe -add & dtlite.exe -mount 0 %P%N
jslegers wrote:Hello,
How can I start a batch file or 2 commands :
I want to do the following
Mountiso
dtlite.exe -add
dtlite.exe -mount 0, file.iso
Unmount iso
dtlite.exe -unmount
dtlite.exe -remove 0
Is this possible with tcbl ?
SynWrite lexer file
Lexer file for SynWrite tcbl.lcf
i have the latest version and have to report that sometimes the size which tcbl returns is not ok:
i am using:
$#S
on certain files it is 0, on others it is a negative value.
e.g. a movie.mkv is ~20GB and is reported as -800000000 bytes.
it is not even close to the correct value.
any ideas?
meanwhile i am using:
however the size gets double quoted somehow .. excel doesn't like this ;-(
**EDIT**: ok it seems ini=q is what i want, which shouled keep names without double quotes correct.
thx
i am using:
$#S
on certain files it is 0, on others it is a negative value.
e.g. a movie.mkv is ~20GB and is reported as -800000000 bytes.
it is not even close to the correct value.
any ideas?
meanwhile i am using:
Code: Select all
pre=echo off
pre=set mytemp=
pre=set myn=
pre=set list=$1
pre=set ssed=$2
pre=if exist "%list%" goto :list
pre=if not exist "%list%" goto :normal
pre=:normal
pre=set myn=0
pre=echo starting id at: %myn%
pre=goto :start
pre=:list
pre=for /f "usebackq" %%a in (`%ssed% -n "$p" "%list%"`) do set /a mytemp=%%a
pre=set myn=%mytemp%
pre=echo starting id at: %myn%
pre=goto :cont
pre=:start
pre=echo id fullfilename name parent gparent ggparent sizeB sizeKB sizeMB sizeGB datetime ext id_hd > "$1"
pre=:cont
cmd=if exist $v:\.id set /p myid=<$v:\.id
cmd=echo output:$i
cmd=set /A myn=%myn%+1
cmd=set /A myi=%myn%+1
cmd=REM echo sizebyte: $#Sb
cmd=echo %myn% $f $n $p1 $p2 $p3 $!%Size@DirSizeCalc.wdx%$! =G%myi%/1024 =G%myi%/(1024*1024) =G%myi%/(1024*1024*1024) $#m $e %myid% >> "$1"
end=PAUSE
**EDIT**: ok it seems ini=q is what i want, which shouled keep names without double quotes correct.
thx
I did a test on random files and all seems to be ok on my side (I do not have any file bigger than 1,5Go on my current laptop so i will test later on my real desktop when i will be back to home....)tcvol wrote:i have the latest version and have to report that sometimes the size which tcbl returns is not ok:
i am using:
$#S
on certain files it is 0, on others it is a negative value.
e.g. a movie.mkv is ~20GB and is reported as -800000000 bytes.
it is not even close to the correct value.
any ideas?
Does this only occurs for file bigger than 3Go ?
If yes i suspect the size function i call to be defective for such files

I believe it's on large files > 5GB however I think that I saw 1,5GB files with wrong sizes as well.nsp wrote:I did a test on random files and all seems to be ok on my side (I do not have any file bigger than 1,5Go on my current laptop so i will test later on my real desktop when i will be back to home....)tcvol wrote:i have the latest version and have to report that sometimes the size which tcbl returns is not ok:
i am using:
$#S
on certain files it is 0, on others it is a negative value.
e.g. a movie.mkv is ~20GB and is reported as -800000000 bytes.
it is not even close to the correct value.
any ideas?
Does this only occurs for file bigger than 3Go ?
If yes i suspect the size function i call to be defective for such filesLet me know in order i check calculation method
will check later.
BEREICH.VERSCHIEBEN = OFFSET
my current workaround is the following:
Code: Select all
[list]
ini=q
pre=echo off
pre=set mytemp=
pre=set myn=
pre=set list=$1
pre=set ssed=$2
pre=if exist "%list%" goto :list
pre=if not exist "%list%" goto :normal
pre=:normal
pre=set myn=0
pre=echo starting id at: %myn%
pre=goto :start
pre=:list
pre=for /f "usebackq" %%a in (`%ssed% -n "$p" "%list%"`) do set /a mytemp=%%a
pre=set myn=%mytemp%
pre=echo starting id at: %myn%
pre=goto :cont
pre=:start
pre=echo id fullfilename name parent gparent ggparent sizeB sizeKB sizeMB sizeGB datetime ext id_hd > "$1"
pre=:cont
cmd=if exist $v:\.id set /p myid=<$v:\.id
cmd=echo output:$i
cmd=set /A myn=%myn%+1
cmd=set /A myi=%myn%+1
cmd=REM echo sizebyte: $#Sb
cmd=REM echo %myn% $f $n $p1 $p2 $p3 $!%Size@DirSizeCalc.wdx%$! =G%myi%/1024 =G%myi%/(1024*1024) =G%myi%/(1024*1024*1024) $#m $e %myid% >> "$1"
cmd=echo %myn% $f $n $p1 $p2 $p3 $!%Size@DirSizeCalc.wdx%$! =BEREICH.VERSCHIEBEN(H%myi%:H%myi%;0;-1)/1024 =BEREICH.VERSCHIEBEN(H%myi%:H%myi%;0;-1)/(1024*1024) =BEREICH.VERSCHIEBEN(H%myi%:H%myi%;0;-1)/(1024*1024*1024) $#m $e %myid% >> "$1"
end=PAUSE
ok here is a comparison.
left column is the size reported by the plugin, right column is reported by tcbl
size is bytes.
left column is the size reported by the plugin, right column is reported by tcbl

size is bytes.
Code: Select all
2207344790 -20.876.000.000.000
2340473948 -19.545.000.000.000
2346129631 -19.488.000.000.000
2346783958 -19.482.000.000.000
2346840673 -19.481.000.000.000
2346908665 -19.481.000.000.000
2347086757 -19.479.000.000.000
2347089802 -19.479.000.000.000
2347021576 -19.479.000.000.000
2347082562 -19.479.000.000.000
2347155149 -19.478.000.000.000
2347652873 -19.473.000.000.000
2347686642 -19.473.000.000.000
2349876454 -19.451.000.000.000
2350097732 -19.449.000.000.000
2350067084 -19.449.000.000.000
2350115568 -19.449.000.000.000
2350047145 -19.449.000.000.000
2350192247 -19.448.000.000.000
2350135524 -19.448.000.000.000
2350181779 -19.448.000.000.000
2350190215 -19.448.000.000.000
2350158944 -19.448.000.000.000
2350186090 -19.448.000.000.000
2350233943 -19.447.000.000.000
2350232637 -19.447.000.000.000
2350244081 -19.447.000.000.000
2350333989 -19.446.000.000.000
2350344382 -19.446.000.000.000
2350338422 -19.446.000.000.000
2350483182 -19.445.000.000.000
2350450204 -19.445.000.000.000
2350578819 -19.444.000.000.000
2350579321 -19.444.000.000.000
2350521084 -19.444.000.000.000
2350543979 -19.444.000.000.000
2350766757 -19.442.000.000.000
2350805400 -19.442.000.000.000
2350812251 -19.442.000.000.000
2350783425 -19.442.000.000.000
2350808683 -19.442.000.000.000
2350806858 -19.442.000.000.000
2350846941 -19.441.000.000.000
2350831254 -19.441.000.000.000
2350820180 -19.441.000.000.000
2350913557 -19.441.000.000.000
2350827981 -19.441.000.000.000
2350820932 -19.441.000.000.000
2351056971 -19.439.000.000.000
2360313194 -19.347.000.000.000
2360362335 -19.346.000.000.000
2360476954 -19.345.000.000.000
2360489551 -19.345.000.000.000
2360448293 -19.345.000.000.000
2360576645 -19.344.000.000.000
2360572655 -19.344.000.000.000
2360535074 -19.344.000.000.000
2360606002 -19.344.000.000.000
2360538274 -19.344.000.000.000
2360610903 -19.344.000.000.000
2360581210 -19.344.000.000.000
2360666354 -19.343.000.000.000
2360709486 -19.343.000.000.000
2360633636 -19.343.000.000.000
2360641203 -19.343.000.000.000
2360631641 -19.343.000.000.000
2360789237 -19.342.000.000.000
2360737983 -19.342.000.000.000
2360775790 -19.342.000.000.000
2360727081 -19.342.000.000.000
2360913536 -19.341.000.000.000
2360872867 -19.341.000.000.000
2405671687 -18.893.000.000.000
2406231937 -18.887.000.000.000
2407852707 -18.871.000.000.000
2408058031 -18.869.000.000.000
2409565966 -18.854.000.000.000
2409757156 -18.852.000.000.000
2410222826 -18.847.000.000.000
2410538327 -18.844.000.000.000
2412307191 -18.827.000.000.000
2412671229 -18.823.000.000.000
2413191756 -18.818.000.000.000
2450092489 -18.449.000.000.000
2452473864 -18.425.000.000.000
2453118189 -18.418.000.000.000
2453314166 -18.417.000.000.000
2453718224 -18.412.000.000.000
2454139824 -18.408.000.000.000
2454420761 -18.405.000.000.000
2454500592 -18.405.000.000.000
2454499063 -18.405.000.000.000
2454518900 -18.404.000.000.000
2454531720 -18.404.000.000.000
2454678108 -18.403.000.000.000
2454840919 -18.401.000.000.000
2454844058 -18.401.000.000.000
2455144068 -18.398.000.000.000
2455384658 -18.396.000.000.000
2455747078 -18.392.000.000.000
3129171800 -11.658.000.000.000
2346965997 -1.948.000.000.000
2346927835 -1.948.000.000.000
2347014559 -1.948.000.000.000
2346945200 -1.948.000.000.000
2349966717 -1.945.000.000.000
2350010061 -1.945.000.000.000
2349967242 -1.945.000.000.000
2350945901 -1.944.000.000.000
2350933120 -1.944.000.000.000
2350986704 -1.944.000.000.000
2360934419 -1.934.000.000.000
2412958415 -1.882.000.000.000
2433924154 -1.861.000.000.000
2452008931 -1.843.000.000.000
2451938886 -1.843.000.000.000
2453929006 -1.841.000.000.000
2453929006 -1.841.000.000.000
Re: intermediate version (983)
great thanks
it's almost done

1st column PLUGIN
2nd, 3rd, 4th TCBL
a few glitches here and there

here is my report:
Code: Select all
PLUGIN sizeB sizeKB sizeMB
782.761.964 7.827.600.000.000 7.644.200.000 746.5
782.761.964 7.827.600.000.000 7.644.200.000 746.5
782.761.964 7.827.600.000.000 7.644.200.000 746.5
782.761.964 7.827.600.000.000 7.644.200.000 746.5
782.761.964 7.827.600.000.000 7.644.200.000 746.5
1.564.764.253 15.648.000.000.000 15.281.000.000 1492.3
358 358 0.34961 0.00034142
6.278 6.278 61.309 0.0059872
2.360.666.354 23.607.000.000.000 23.053.000.000 2251.3
2.360.913.536 23.609.000.000.000 23.056.000.000 2251.5
2.360.789.237 23.608.000.000.000 23.055.000.000 2251.4
2.360.709.486 23.607.000.000.000 23.054.000.000 2251.3
2.360.476.954 23.605.000.000.000 23.052.000.000 2251.1
2.360.737.983 23.607.000.000.000 23.054.000.000 2251.4
2.360.775.790 23.608.000.000.000 23.054.000.000 2251.4
2.360.576.645 23.606.000.000.000 23.053.000.000 2251.2
2.360.489.551 23.605.000.000.000 23.052.000.000 2251.1
2.360.572.655 23.606.000.000.000 23.052.000.000 2251.2
2.360.535.074 23.605.000.000.000 23.052.000.000 2251.2
2.360.633.636 23.606.000.000.000 23.053.000.000 2251.3
2.360.448.293 23.604.000.000.000 23.051.000.000 2251.1
2.360.606.002 23.606.000.000.000 23.053.000.000 2251.2
2.360.538.274 23.605.000.000.000 23.052.000.000 2251.2
2.360.641.203 23.606.000.000.000 23.053.000.000 2251.3
2.360.727.081 23.607.000.000.000 23.054.000.000 2251.4
2.360.610.903 23.606.000.000.000 23.053.000.000 2251.3
2.360.934.419 23.609.000.000.000 23.056.000.000 2251.6
2.360.313.194 23.603.000.000.000 2.305.000.000 2.251
2.360.872.867 23.609.000.000.000 23.055.000.000 2251.5
2.360.581.210 23.606.000.000.000 23.053.000.000 2251.2
2.360.631.641 23.606.000.000.000 23.053.000.000 2251.3
2.360.362.335 23.604.000.000.000 2.305.000.000 2.251
2.454.840.919 24.548.000.000.000 23.973.000.000 2341.1
2.455.384.658 24.554.000.000.000 23.978.000.000 2341.6
2.455.747.078 24.557.000.000.000 23.982.000.000 2.342
4.913.862.137 49.139.000.000.000 47.987.000.000 4686.2
2.452.008.931 2.452.000.000.000 23.945.000.000 2338.4
2.452.473.864 24.525.000.000.000 2.395.000.000 2338.9
2.454.518.900 24.545.000.000.000 2.397.000.000 2340.8