Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

drudkin

Upload same files to multiple FTP directories

Martin,
Thanks for pointing me in the right direction. I used the automated function to create the script file for me and then saved it as a text file, example of script below.
The only problem now is that i have no idea how to actually execute the script. I have read everything and I am sure that it is just something i am not understanding.
Your help is appreciated in advance
open sftp://drudkin:xxxxxxx@xxxxx.xxxxx.com/ -hostkey="ssh-rsa 1024 RO0ArzoIscQoMNpHvoyhKy/8EoRg+8GbkE4uKbBVooQ="

lcd C:\Users\drudkin\Documents\Zoom
cd /

put * <Advanced Air>
put * <Machine Specialties>
put * <Frey & Weiss>
put * <Alro Machine and Tool>
put * <Aerometals>
put * <Precision Mold and Tool>
put * <Forster Tool>
put * <Owens Industries>
put * <BLUSA>
put * <Alta Precision>
put * <International Precision>
put * <AAR LGS>
put * <Mayday Manufacturing>
put * <CM Manufacturing>
put * <Aero-Glen>
put * <Skyspares>
put * <Cummins Aerospace>
exit
martin

Re: Upload same files to multiple FTP directories

drudkin wrote:

Thank you for the information, unfortunately i have no idea how to do that. I can place the commands in a text file, that is easy, but I have no idea how to run that script. Very new to SQL and automation like this. Any help you could give would be appreciated

Start here:
https://winscp.net/eng/docs/guide_automation
drudkin

Re: Upload same files to multiple FTP directories

Thank you for the information, unfortunately i have no idea how to do that. I can place the commands in a text file, that is easy, but I have no idea how to run that script. Very new to SQL and automation like this. Any help you could give would be appreciated



martin wrote:

You have to use one command per directory.
But it's not that more complicated.
If you are uploading all files from the current working directory, you just prefix each folder with put *:
put * <folder1>

put * <folder2>
...
martin

Re: Upload same files to multiple FTP directories

You have to use one command per directory.
But it's not that more complicated.
If you are uploading all files from the current working directory, you just prefix each folder with put *:
put * <folder1>

put * <folder2>
...
drudkin

Upload same files to multiple FTP directories

I have a couple hundred files (local) that i need to upload to 63 different folders (FTP Server). Can i do this with one command or do i have to do each folder individually