Copy file to ftp and rename to/overwrite file under target cursor

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Olfert
Junior Member
Junior Member
Posts: 63
Joined: 2006-05-17, 10:55 UTC

Copy file to ftp and rename to/overwrite file under target cursor

Post by *Olfert »

I almost daily update a few files on our ftp server. The files on my computer are always named the day of the edit but the files on the ftp server is the same all the time.
At present my procedure is like this:
- open ftp connection
- change to folder with the file to update
- put the cursor on the file
- SHIFT+F6 and CTRL+C to copy filename (my TC setting is to only select filename at first so extension is not selected)
- change to other panel and place cursor on the file to copy
- initiate copy by F5 and press F5 again to only select filename (the option to default only select filename is not working in the copy dialog)
- CTRL+V to paste the filename copied from server
- hit ENTER and confirm overwrite
and then repeat 2-3 times.

Samples of filenames:
from on my computer to the server
2025-02-13-calendar2025-1.pdf >> calendar2025-1.pdf
2025-02-13-calendar2025-2.pdf >> calendar2025-2.pdf
2025-02-13-schedule2025.pdf >> schedule2025.pdf

My questions are:
1) Is it possible to have TC use the target name in the copy command? (that would eliminate at least a few steps)
2) Is it possible to add a button, that copy selected file to FTP-server/path/new name? (a button for each file is ok)
3) Is it possible to have TC automatically open the FTP connection, copy the file and then close the connection?
User avatar
white
Power Member
Power Member
Posts: 5747
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Copy file to ftp and rename to/overwrite file under target cursor

Post by *white »

It is possible to upload files using an "FTP download list" and store the file under a different name. For more info on download lists see here and here.
But sadly there isn't an internal command with parameter to start such a list.
Olfert
Junior Member
Junior Member
Posts: 63
Joined: 2006-05-17, 10:55 UTC

Re: Copy file to ftp and rename to/overwrite file under target cursor

Post by *Olfert »

Thanks White. Not bad... it works. I'll play around with it and see if it suits my needs.
Although I don't like the idea of supplying my ftp-password in plain text in the file...
User avatar
white
Power Member
Power Member
Posts: 5747
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Copy file to ftp and rename to/overwrite file under target cursor

Post by *white »

Olfert wrote: 2025-02-13, 14:01 UTC Although I don't like the idea of supplying my ftp-password in plain text in the file...
As mentioned if you click the first mentioned link, you can use an encrypted password in the file.
hi5
Power Member
Power Member
Posts: 637
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: Copy file to ftp and rename to/overwrite file under target cursor

Post by *hi5 »

I would probably automate it outside of TC, but perhaps another workflow:

1. Create an upload folder, say c:\ftpserver\upload
2. Copy the three local files to it
3. Run a saved multi rename tool using the == option so is executed automatically
4. Now start FTP and upload, overwrite

You can automate several steps so it is only one or two actions: select files, press button (which runs several commands (copy, rename) and starts ftp) - after that it is select all and upload.

If you want you can use CD to start an FTP connection as well so you can have it as a directory bookmark as well.
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Post Reply