A small bug creating shortcuts in TC

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
wanderer
Power Member
Power Member
Posts: 1578
Joined: 2003-03-28, 14:35 UTC
Location: Sol

A small bug creating shortcuts in TC

Post by *wanderer »

select a file from the source panel (i.e. an exe), rightclick on it and drag it in the destination panel. when you release the right mouse button, you get a menu. Select "create shortcut". Now repeat the process again with the same file. TC finds the .lnk files in the destination dir and waits for a confirmation before writing over it.

The confirmation should be: rewrite file Path1\xxx.lnk (size 700 bytes) with file Path2\xxx.lnk (size 700 bytes).

Instead it is: rewrite file Path1\xxx.lnk (size 700 bytes) with file Path2\xxx.exe (size 123456789 bytes).

Instead of showing the new link's name with the new link's size, it has the file's actual name and size. I understand that the link has not been created yet so TC does not know that to show there but showing the exe's name is a little missleading, isn't it?
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
User avatar
frenky
Senior Member
Senior Member
Posts: 250
Joined: 2005-07-30, 19:36 UTC

Post by *frenky »

Or Ctrl+F5 creates shortcut..
Same behavior. File size is of a original file name.
Ambiguity succeeds where honesty dares not venture.
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3299
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

1. i dont see this as bug
2. next time please search as this was discused just recently (but i cant find the thread)...
Hoecker sie sind raus!
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

next time please search as this was discused just recently (but i cant find the thread)...
bravo !

please aplause !
Habemus majkam!
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2Sir_SiLvA
was discused just recently (but i cant find the thread)
Maybe here: http://www.ghisler.ch/board/viewtopic.php?p=76410#76410
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
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3299
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

Excatly! thx Peter!
Hoecker sie sind raus!
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2Sir_SiLvA
You're welcome :-)
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
User avatar
wanderer
Power Member
Power Member
Posts: 1578
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Post by *wanderer »

Sir_SiLvA wrote:1. i dont see this as bug
I do, that's why i posted it. ;) When overwriting an lnk file with size 700 bytes, with another lnk file (another 700 bytes), i expect to see just that on the dialog, not "overwriting file x.lnk (700 bytes) with file xyza.exe(45 MBs)". It's confusing.
Sir_SiLvA wrote:2. next time please search as this was discused just recently (but i cant find the thread)...
I did. The problem is that i do not have enough time to thourougly search the forum, topic by topic to see if it has been reported again so after a quick search (in which i didn't find anything), i posted it.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2wanderer
The confirmation should be: rewrite file Path1\xxx.lnk (size 700 bytes) with file Path2\xxx.lnk (size 700 bytes).
This a well known limitation. AFAIK it's impossible to know how large the new shortcut file will be without creating it. Just writing the the size of the old shortcut file is as wrong as giving the size of the link target.

My suggestion to the author: Create a shortcut in a temporary directory and read its size. This size is displayed instead of the link target size. When user decides to overwrite the existing shortcut file move the temporary shortcut file to the desination directory otherwise delete it.
User avatar
wanderer
Power Member
Power Member
Posts: 1578
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Post by *wanderer »

Lefteous wrote:AFAIK it's impossible to know how large the new shortcut file will be without creating it.
As i had pointed out in my original post:
wanderer wrote:I understand that the link has not been created yet so TC does not know that to show there but showing the exe's name is a little missleading, isn't it?
I understand that but that does not making less confusing (at least the first time you see it). I believe your suggestion is the only way to go and i fully support it.
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3
x64: Clients/Servers from Win7 to Win11 and Win2K12Srv to Win2K22Srv, mainly Win10 though.
Post Reply