http link generator from FTP folder?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
derekz
Junior Member
Junior Member
Posts: 26
Joined: 2004-03-26, 23:41 UTC

http link generator from FTP folder?

Post by *derekz »

Hi

I'm searching a plug-in (or personal menu command?) for generate a link to copy from a FTP folder.

Scenario:

Right click on ftp file (file.zip)
"Copy ftp/http link"
And I paste it where i want.

Link can be
ftp://example.com/file.zip

or

http://www.example.com/file.zip
(if ftp anonymous access is not allowed)


Is this possible?

thanks
User avatar
HolgerK
Power Member
Power Member
Posts: 5412
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

- <Ctrl+N> ("Net->FTP New Connection...")
- <Ctrl+V> paste your URL into the editable combo box "Connect to (host or URL):"
- [OK]
- [OK]

Regards
Holger
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

HolgerK,
I think he wants to copy fully qualified file path in an opened FTP connection.

Often I want such thing too. Especially when path contains spaces that must be replaced with %20.
derekz
Junior Member
Junior Member
Posts: 26
Joined: 2004-03-26, 23:41 UTC

Post by *derekz »

Inverse....

I want to send to my friend a link of a file on ftp server
Last edited by derekz on 2013-05-15, 12:59 UTC, edited 1 time in total.
User avatar
HolgerK
Power Member
Power Member
Posts: 5412
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

Especially when path contains spaces that must be replaced with %20
Maybe: List2Clipboard
Insert text before the path. Append text to the path. Replace text parts
Regards
Holger
derekz
Junior Member
Junior Member
Posts: 26
Joined: 2004-03-26, 23:41 UTC

Post by *derekz »

list2clipboard not good for ftp/http links
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2derekz
Why not? Works fine here.
derekz
Junior Member
Junior Member
Posts: 26
Joined: 2004-03-26, 23:41 UTC

Post by *derekz »

:oops:
I've only read the installation file
and not found reference to ftp http.
(it's a bit difficult to install)

If I copy a link from ftp.example.com
I can paste "www.example.com/file" or "ftp.example.com/file" ?
User avatar
HolgerK
Power Member
Power Member
Posts: 5412
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

Okay, back to the roots.

Try this:
- activate a ftp connection in TC
- place the cursor on a file in the ftp connection panel
- TC- Main menu: "Mark -> Copy Names with Path to Clipboard"
- paste the clipboard content in your mail program

At least if your path does not contain spaces which must be converted to %20, and your mail program can handle this string (maybe "Insert -> Link" or a similar command exists there), you should get your f t p ://example.com/file.zip - link you can send to your friend.

Regards
Holger
derekz
Junior Member
Junior Member
Posts: 26
Joined: 2004-03-26, 23:41 UTC

Post by *derekz »

this is a good step forward.
could suffice.

Hopefully, there is way to create a custom macro?
it must
convert space to 20%
rename ftp://ftp.example.com to http://www.example.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2derekz
If I copy a link from ftp.example.com
I can paste "www.example.com/file" or "ftp.example.com/file" ?
Yes. Here is how it works:

Installation:
1. Download the zip file and unpack to a folder.
2. Drag and drop the executable to the buttonbar.
3. Edit the button parameter. enter /L:"%L"

Customization:
In your case it's a simple prefix (as TC doesn't use the full ftp path when %L is used). Append this to the command field:
/P:"http://www.example.com"

If you have spaces in the path use a replacement action (append to the other parameter in command field:
/R:" "="%20%"
Last edited by Lefteous on 2013-05-16, 09:18 UTC, edited 1 time in total.
derekz
Junior Member
Junior Member
Posts: 26
Joined: 2004-03-26, 23:41 UTC

Post by *derekz »

If I append
/P="http://www.example.com"
on the command field obtain an error
"Unknow parameter type"

If I append
/P="http://www.example.com"
on the parameter field obtain an error
"/L not definited"
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

derekz wrote:If I append
/P="http://www.example.com"
on the command field obtain an error
"Unknow parameter type"
Sorry I made a typing error. Use this instead:
/P:"http://www.example.com"
derekz
Junior Member
Junior Member
Posts: 26
Joined: 2004-03-26, 23:41 UTC

Post by *derekz »

ook!
thanks


p.s.

exact command is

/R:" "="%20"

;)
Post Reply