Strange behaviour with button to defrag file with contig

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
liamZ
Junior Member
Junior Member
Posts: 23
Joined: 2014-12-28, 20:04 UTC

Strange behaviour with button to defrag file with contig

Post by *liamZ »

Hi, I have TC v9.21a x64, and I have created a button to defrag a file with sysinternals tool contig.exe.
The button runs the command "cmd /k contig.exe -v %P%N"
And when a run the command I get this:

Code: Select all

Found a free disk block at 2288692 of length 976683 for entire file.
Moving 280592 clusters at file offset cluster 0 to disk cluster 2288692
Move cluster status: STATUS_ALREADY_COMMITTED

Moving 280592 clusters at file offset cluster 0 to disk cluster 2288692
Move cluster status: STATUS_ALREADY_COMMITTED

File size: 1149304832 bytes
Fragments before: 4
Fragments after : 4
but the strange thing is when I open cmd.exe and run manually "contig.exe -v file"
everything works fine:

Code: Select all

Found a free disk block at 2288692 of length 976683 for entire file.
Moving 280592 clusters at file offset cluster 0 to disk cluster 2288692
File size: 1149304832 bytes
Fragments before: 4
Fragments after : 1
So, what's going on?, anybody can reproduce this? Or it's just my computer.
liamZ
Junior Member
Junior Member
Posts: 23
Joined: 2014-12-28, 20:04 UTC

Re: Strange behaviour with button to defrag file with contig

Post by *liamZ »

OK, I just found that contig64.exe is broken. The problem was that when I was running manually contig.exe I was running 32 bit version, and the one in my button was 64 bit version. So why this 2 year old program is still not fixed?
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6480
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Strange behaviour with button to defrag file with contig

Post by *Horst.Epp »

liamZ wrote: 2018-09-20, 15:37 UTC OK, I just found that contig64.exe is broken. The problem was that when I was running manually contig.exe I was running 32 bit version, and the one in my button was 64 bit version. So why this 2 year old program is still not fixed?
And why do you ask this in the TC Forum ?
Btw there is no real need for the x64 Version of this tool.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3447)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
liamZ
Junior Member
Junior Member
Posts: 23
Joined: 2014-12-28, 20:04 UTC

Re: Strange behaviour with button to defrag file with contig

Post by *liamZ »

You don't know why?
Well, If I'm gonna find that kind of answers like you give maybe next time I wont.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6480
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Strange behaviour with button to defrag file with contig

Post by *Horst.Epp »

liamZ wrote: 2018-09-20, 16:57 UTC You don't know why?
Well, If I'm gonna find that kind of answers like you give maybe next time I wont.
You already found the culprint of your Problem, which is Not TC.
So what helpfull answer do you expect for the question why the program is not updated?
Windows 11 Home x64 Version 23H2 (OS Build 22631.3447)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
petermad
Power Member
Power Member
Posts: 14793
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Strange behaviour with button to defrag file with contig

Post by *petermad »

2liamZ
"cmd /k contig.exe -v %P%N"
Notice that you cannot use %P%N in the Command Field - you have to put that in the Parameters Field.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply