[Plugin Request] Copy of shortcut's target

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Hakarien
Junior Member
Junior Member
Posts: 31
Joined: 2003-02-07, 17:10 UTC
Location: Geneva

[Plugin Request] Copy of shortcut's target

Post by *Hakarien »

I need the following functionality.

Given a directory containing Windows shortcuts (.lnk), I would like to create a copy of the target files in the opposite panel.

What for ?
Let say you put all your files in one container (directory) and have several projects, customers, etc... organized only with shortcuts.
If you want to take with you a copy of all the files for one project you need a functionality like this.

For techies: Doing this with hardlinks is ok only if all files hare on the same volume, which is hardly the case nowadays.
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

I'm not sure but I think there is already a plugin with this functionality. Please search at http://www.totalcmd.net/ .

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
Hakarien
Junior Member
Junior Member
Posts: 31
Joined: 2003-02-07, 17:10 UTC
Location: Geneva

Post by *Hakarien »

Yes, thanx. It's copylinktarget

I din't find it on a seach with "shortcut" but you'e right it was there buried down a "copy" search. :(

Sorry for not having finding it sooner
User avatar
majkinetor
Senior Member
Senior Member
Posts: 369
Joined: 2005-11-20, 10:36 UTC
Location: Belgrade, Serbia
Contact:

Post by *majkinetor »

I don't like about that plugin the fact that I have to press CTRL + B every time I use it. Lefty, please make this default behavior.

I currently use console tool for this... its name is ReadLink.exe (~32K). This is a batch script I use, and U add it to the Start menu as
  Program: CopyLink.bat
  Params: %N "%T"

Code: Select all

set LINK="%~1"
set FNAME=""
set DEST="%~2"

for /F %%i in ('readlink %LINK%') do set FNAME=%%i
copy %FNAME% %DEST% >nul
Now, with cursor on link, just select start->copy link , and you will heave it in oposite pannel.
We are not doing this just for the money.
We are doing it for sh*t load of money.
 
 
r-moth.com
r-moth.deviantart.com
User avatar
van Dusen
Power Member
Power Member
Posts: 684
Joined: 2004-09-16, 19:30 UTC
Location: Sinzig (Rhein), Germany

Post by *van Dusen »

Thanks, majkinetor!

Little addition: readlink.exe is also part of the outwit-suite:
http://www.dmst.aueb.gr/dds/sw/outwit/

It contains the following tools:
  • winclip - Access the windows clipboard
  • winreg - manipulate the windows registry
  • docprop - read document properties
  • odbc - select data from relational databases
  • readlink - resolve shell shortcuts
  • readlog - access the windows event log
User avatar
majkinetor
Senior Member
Senior Member
Posts: 369
Joined: 2005-11-20, 10:36 UTC
Location: Belgrade, Serbia
Contact:

Post by *majkinetor »

[OT]
-----
Yup, that's where I found it also.

Winclip is very useful tool. I found to be very hard to find good console clipbard application but this works very nice.

U can do things like:

Code: Select all

   dir | winclip -c
   winclip -p

which is great.
U can also use this technique to save command prompt commands without using anoying windows alternative. If you heave command like:

Code: Select all

c:>some very long commad here
just add | winclip -c at the end and press HOME and add echo

Code: Select all

c:>echo some very long command here | winclip -c
We are not doing this just for the money.
We are doing it for sh*t load of money.
 
 
r-moth.com
r-moth.deviantart.com
Post Reply