Long filenames when dragging and dropping to the toolbar

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
mikele
Junior Member
Junior Member
Posts: 2
Joined: 2004-09-10, 17:51 UTC
Location: Buenos Aires, Argentina

Long filenames when dragging and dropping to the toolbar

Post by *mikele »

Hi everyone!

Is it possible to pass long filenames when dragging and dropping files to the icons in the toolbar? As far as I can see, TC passes the short 8.3 filename as the parameter.

Thanks in advance.
Salute!
Mikele.
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Try putting %N into the Parameters line of the Button Bar entry. If this works, then it has the disadvantage of always passing the filename under cursor when just clicking the button to start the program (and not dragging any files on its button).

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Bof---

Post by *Clo »

2Hacker
:) Hi Roman !
- I can Drag & Drop files having long names, i.e.15 characters+ext on an icon of the bar, without any parameter in the Parameters field of the button-dialog.
- I just tested with XnView and a GIF file like above, that works. What am I missing ? The Dos-name in the title-bar of XnView ? Not a big problem …

:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

What am I missing ? The Dos-name in the title-bar of XnView ? Not a big problem …
Yes exactly - the program gets the short name.

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
mikele
Junior Member
Junior Member
Posts: 2
Joined: 2004-09-10, 17:51 UTC
Location: Buenos Aires, Argentina

Post by *mikele »

Thanks Roman, I've put %P%N and it works nice.

Most of the times it's ok to use the short filename, but sometimes it's not, for example when you need to pass it to some app that does some processing with it like moving it to another place. In that case, the destination file will have a different name than the original.
Salute!
Mikele.
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

mikele wrote:Thanks Roman, I've put %P%N and it works nice.
There's no need to put the %P into Parameters if you only want to get the long filename while drop a file. The %N fits ( and you get the long path name, too).

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

You're welcome. :)

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Post Reply