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?
Copy file to ftp and rename to/overwrite file under target cursor
Moderators: Hacker, petermad, Stefan2, white
Re: Copy file to ftp and rename to/overwrite file under target cursor
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...
Although I don't like the idea of supplying my ftp-password in plain text in the file...
Re: Copy file to ftp and rename to/overwrite file under target cursor
As mentioned if you click the first mentioned link, you can use an encrypted password in the file.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...
Re: Copy file to ftp and rename to/overwrite file under target cursor
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.
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)
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)