CopyFSNameToClip

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Juergen
Power Member
Power Member
Posts: 517
Joined: 2003-05-02, 18:19 UTC
Location: Berlin (Germany)
Contact:

CopyFSNameToClip

Post by *Juergen »

Code: Select all

; Copy the full name of a file from a TC file system plugin to the clipboard.
; In contrast to TC's built-in cm_CopyFullNamesToClip, this script omitts the
; leading name of the file system.
; Language: AutoHotkey <http://www.autohotkey.com/>

if 0 != 1              ; if there is not exactly 1 command-line parameter
{
   MsgBox, This program must be called from within TC with parameter `%P`%N
   ExitApp
}

FsFilename = %1%
StringTrimLeft, Clipboard, FsFilename, Instr(FsFilename, "\", true, 4)
Something like this was requested on the German forum.

Regards, Juergen

[edit]
After some "research" about %P and %N, the script was simplified a little. I also changed the description, so that now the difference to TC's built-in command cm_CopyFullNamesToClip becomes clearer.
[/edit]
Last edited by Juergen on 2006-09-08, 20:04 UTC, edited 1 time in total.
My add-ons and plugins for TC: NiftyLink, mbox, Sequences
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3299
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

whats the difference to cm_CopyFullNamesToClip ?
Hoecker sie sind raus!
Juergen
Power Member
Power Member
Posts: 517
Joined: 2003-05-02, 18:19 UTC
Location: Berlin (Germany)
Contact:

Post by *Juergen »

Sir_SiLvA wrote:whats the difference to cm_CopyFullNamesToClip ?
[edit]
The difference on principle is now clearer denoted at the top of the script.
[/edit]
Another difference is, that this script can only handle 1 name.
My add-ons and plugins for TC: NiftyLink, mbox, Sequences
Post Reply