create link/shortcut to folder on ftp

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Achiles
Junior Member
Junior Member
Posts: 28
Joined: 2007-02-08, 20:32 UTC
Location: Transylvania

create link/shortcut to folder on ftp

Post by *Achiles »

Hello,

I am trying to create a link file to a folder on a ftp server. Locally I do this by holding down Ctrl+Shift while dragging a file or folder into the other window.

When I do this with a folder on ftp, the mouse icon changes to reflect that I am holding the modifier keys but what I get is a simple copy, no effect from the modifiers.

Is there a way to do this?

Thank you.
User avatar
petermad
Power Member
Power Member
Posts: 16136
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

.lnk files are not supported for FTP.

But you can drag the folder on the FTP-site to the button-bar, then you get a button that will bring you to the folder, even if you are not currently connected to the FTP server.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Achiles
Junior Member
Junior Member
Posts: 28
Joined: 2007-02-08, 20:32 UTC
Location: Transylvania

Post by *Achiles »

Thanks for replying. I knew about the button bar thingie, but I need to store locations in folders, to remember where I uploaded the original contents.

I guess I'll have to create text files and paste the url inside them...
User avatar
Gral
Power Member
Power Member
Posts: 1609
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

There is a many possibilities

1. You can create link file using TOTALCMD.EXE as a "prefix" for url run
(TOTALCMD.EXE as a program and ftp url as a parameter, to be precise).
Just open new shortcut creator (from within TC!) and type:
%COMMANDER_EXE% /O /L=ftp://ftp.heanet.ie/mirrors/
as a target element (ftp url is just example of course)
%COMMANDER_EXE% should resolve to your TC executable, /O means you use running TC instance, /L assuming you want open ftp in Left panel, if not, change to /R.

2. Use "Directory Hotlist" and define ftp url (with CD command at start) as a command, and your local directory as a target folder.

3. Use button with similar settings as above - set both: local and remote directory.

4. Use CTRL+F to open FTP connections window and define new connection - you can set up remote and local directory.


Also, when you connect to ftp server you can use
cm_SyncChangeDir command to "Synchronous directory changing in both windows".

 
Dickcox
Junior Member
Junior Member
Posts: 4
Joined: 2016-07-05, 10:38 UTC
Location: Germany

Post by *Dickcox »

petermad wrote:.lnk files are not supported for FTP.

But you can drag the folder on the FTP-site to the button-bar, then you get a button that will bring you to the folder, even if you are not currently connected to the FTP server.
Can I store the password with the button somehow?
User avatar
petermad
Power Member
Power Member
Posts: 16136
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2Dickcox

Right-click on the button and choose Change. You will se a command like:

Code: Select all

cd ftp://username@hostname/directory
change that to:

Code: Select all

cd ftp://username:password@hostname/directory
I strongly do NOT recommend doing this, because the password is then free to see for everybody :!:
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Dickcox
Junior Member
Junior Member
Posts: 4
Joined: 2016-07-05, 10:38 UTC
Location: Germany

Post by *Dickcox »

2 petermad

Thank you much for the info and the recommendation.
I'm the only one who uses this machine.
User avatar
petermad
Power Member
Power Member
Posts: 16136
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I'm the only one who uses this machine.
Viruses and hackers can see the password, because it is not encrypted.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Dickcox
Junior Member
Junior Member
Posts: 4
Joined: 2016-07-05, 10:38 UTC
Location: Germany

Post by *Dickcox »

Oh. Okay, thanks.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50918
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The secure way would be to store the connection in Ctrl+F dialog with master password. Then add connection to the button bar in this form:
FTPOPEN configured_ftp_connection

with configured_ftp_connection the name used in Ctrl+F dialog.
Author of Total Commander
https://www.ghisler.com
Dickcox
Junior Member
Junior Member
Posts: 4
Joined: 2016-07-05, 10:38 UTC
Location: Germany

Post by *Dickcox »

Thank you. I've set it up encrypted with a master password.
Post Reply