Drag & Drop from c:\windows\fonts\ doesn't work [no bug]

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
hi5
Power Member
Power Member
Posts: 642
Joined: 2012-11-03, 11:35 UTC
Contact:

Drag & Drop from c:\windows\fonts\ doesn't work [no bug]

Post by *hi5 »

I only just noticed this behaviour earlier today and I don't know if this a bug or proper behaviour.

When I drag & drop a file from c:\windows to another program it works, so i can drop it as an attachment to an email or open a log file in a text editor.

But when I drag a file from c:\windows\fonts it simply doesn't work (tried it on Win 7 32bit and Win 8.1 64bit) - TC 9.0.

I start to drag & drop, I can drag & drop it to the other panel but when I want to drag it to my email program (I wanted to send a specific font via email) the drag & drop "mouse cursor" disappears so I can no longer drop it.

When you drag & drop your mouse cursor either gets that red circle to indicate you can't drop it there or that square with the + sign to indicate you can drop it. But when drag & dropping a file from c:\windows\fonts the mouse cursor just changes to a normal mouse cursor and the file you selected to drag is no longer "held" so you can't drop it. You can drop it to another panel so within TC it is fine, outside TC it won't work.

Not sure if this is supposed to happen as other files from other hidden folders in c:\windows or other locations don't have this problem, and as soon as the font.ttf is NOT in c:\windows\fonts you can drag & drop it just fine.
Last edited by hi5 on 2016-12-01, 18:17 UTC, edited 1 time in total.
User avatar
petermad
Power Member
Power Member
Posts: 16134
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I can confirm that it is not possible to drag files from c:\windows\fonts to any other program - only between file panels in TC.

Also after having tried to drag a file from c:\windows\fonts outside of TC it is no longer possible to set focus to TC without first setting focus to another program.

Tried with TC both elevated and non-elevated and the bug also applies to TC8.52a

Another observation: If I right click on a file in c:\windows\fonts and click "Copy" then TC's - Copy dialog pops up in stead of the file just being copied to Clipboard as usual.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50909
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately this is not possible because "fonts" is a virtual folder in Explorer which is treated in a special way. I can try to prevent the locked focus, but I cannot do anything about this Windows problem. Also the normal context menu will not appear in this folder either.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 16134
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

It is interesting though that it is possible to drag-and-drop from the virtual \\fonts\ folder (cm_OpenFonts) but not from what appears as an ordinary folder: c:\windows\fonts\
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
hi5
Power Member
Power Member
Posts: 642
Joined: 2012-11-03, 11:35 UTC
Contact:

Post by *hi5 »

Thanks for the info, I've updated the title of the thread to indicate it isn't a bug.
User avatar
HolgerK
Power Member
Power Member
Posts: 5412
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

Possible workaround:

Code: Select all

cd \\localhost\C$\Windows\Fonts\
Regards
Holger
User avatar
petermad
Power Member
Power Member
Posts: 16134
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2HolgerK
Smart! :-)
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Another possible workaround (from elevated console):

Code: Select all

mklink /J %SystemRoot%\FontsNative %SystemRoot%\Fonts
And then drag from C:\Windows\FontsNative. :D
Post Reply