TC internal command to get file URI

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
risk
Junior Member
Junior Member
Posts: 87
Joined: 2007-07-30, 03:18 UTC

TC internal command to get file URI

Post by *risk »

Is there an internal command or a systematic way to copy a file's (file:///...) path to the clipboard?

This is an example of the format I'm looking for: file:///c:/WINDOWS/WindowsUpdate.log
User avatar
white
Power Member
Power Member
Posts: 6013
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: TC internal command to get file URI

Post by *white »

risk wrote:Is there an internal command or a systematic way to copy a file's (file:///...) path to the clipboard?
http://www.totalcmd.net/plugring/list2clip.html
http://lefteous.totalcmd.net/tc/docs/lst2clip/readme.htm#examples
Sugit
Junior Member
Junior Member
Posts: 18
Joined: 2004-08-05, 12:16 UTC

Re: TC internal command to get file URI

Post by *Sugit »

white wrote:
risk wrote:Is there an internal command or a systematic way to copy a file's (file:///...) path to the clipboard?
http://www.totalcmd.net/plugring/list2clip.html
http://lefteous.totalcmd.net/tc/docs/lst2clip/readme.htm#examples
Thank you, that solves my question too.
One more question: In the string of the filename, I also want to use " (quote). How can I do this?
(I want to make a string like: <a href="file:///D:/Documents/File.txt">Linktext</a> )
Sugit
Junior Member
Junior Member
Posts: 18
Joined: 2004-08-05, 12:16 UTC

Re: TC internal command to get file URI

Post by *Sugit »

And a remark: in the support page for this add-in (http://lefteous.totalcmd.net/tc/docs/lst2clip/readme.htm#examples), there is an example showing a SPACE replaced by %20%.
Well, I am a complete newbie in this... cost me some hours to find out it should be %20 (so no % at the end).

Would that be correct?
Post Reply