SFTP - Windows Automate Script to Synchronize Uploading Files to Remote Directory using WinSCP

SFTP - Windows Automate Script to Synchronize Uploading Files to Remote Directory using WinSCP

CodeCowboyOrg

8 лет назад

170,801 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

socrayhte
socrayhte - 12.07.2023 23:44

Pretty straightforward video. Now I would like to make enquiry about moving files from one remote server to another remote server without having to download the files to your PC

Ответить
Kingston
Kingston - 22.06.2023 17:12

how do i exclude files during the transfer.. is there a setting on winscp

Ответить
Akroomas
Akroomas - 25.09.2022 12:48

what is the 2048 you entered there before the fingerprint

Ответить
Fata H
Fata H - 27.08.2022 11:10

what if the folder name has space on it, i mean if the folder to sync is "My Products", having a small challenge

Ответить
Matt Theriot
Matt Theriot - 25.07.2022 19:37

Thanks for the tutorial! For future reference (or maybe you could add into the description) you didn't explain the difference between the BAT script and the text file containing the WINSCP command.

Ответить
Stephen Gunter
Stephen Gunter - 27.06.2022 23:03

This would be helpful if you were shown what's in the batch file. I tried downloading it but can't.

Ответить
Stefan Seeger
Stefan Seeger - 12.06.2022 19:58

Hello, can you provide me with the scripts? Unfortunately, the Google Drive links are no longer valid or released.

Ответить
Ronak Oza
Ronak Oza - 23.05.2022 05:42

hi thank you for the video. can you plz provide me perm to dnld script?

Ответить
Eric Cha
Eric Cha - 11.05.2022 06:59

when I run, it doesn't recognize the 'open' command

Ответить
Axel Ntore
Axel Ntore - 24.03.2022 09:50

can the script be scheduled to run every 5 min ?
and does the winscp has to be open or it can run without opening it
Thanks

Ответить
luisito48319
luisito48319 - 07.09.2021 02:22

Thanks man. you are Iron Man

Ответить
baihaqi ariffin
baihaqi ariffin - 05.09.2021 02:18

Thank you so much for sharing this knowledge , really appreaciate.

Ответить
Omar A
Omar A - 29.07.2021 21:27

thanks! helped me out a lot, appreciate it!

Ответить
Francisco Arrona
Francisco Arrona - 15.06.2021 04:05

Hello and thanks, is there a way to compress de files and upload just the zip file?

Ответить
SubUrban Cowboy
SubUrban Cowboy - 13.05.2021 17:34

It would have been nice if you showed how the script actually worked, not that you could make it work.

Ответить
André Vale
André Vale - 12.05.2021 23:49

Thanks my friend, you salve my day!

Ответить
chewyland live
chewyland live - 08.05.2021 14:54

Is there really no way to automate a simple file copy from SFTP to LOCAL without having to open up Notepad?

Ответить
Inês Abrunhosa dos Santos
Inês Abrunhosa dos Santos - 10.04.2021 20:28

...that's nice and all but there's not an actual video showing how I know my hostname and what it should look like and it doesn't show how should I know if I should use FTP or SFTP or whatever... help please? It's annoying looking for such thing with the keywords "winscp" and getting results about FZ ..if I wanted FZ i'd look up "FZ".. af...thanks

Ответить
Karthika balu
Karthika balu - 02.04.2021 14:40

How to add time stamp in filename in winscp?

Ответить
ilovechiliz
ilovechiliz - 23.03.2021 14:30

do you have uploadung files from remote directory in a task schedule backward with WinSCP

Ответить
M Remy
M Remy - 09.03.2021 11:08

Thanks. I'm just heading into this. I need to coordinate excel files from FTP server of distributor to FTP server of e commerce site of Duda. Which video would be best?

Ответить
Mohammed Aarif Shaikh
Mohammed Aarif Shaikh - 09.02.2021 02:33

Can we give the conditions in the script?
Like first copy 3 files and once it’s successful copy the other 3 files?

Ответить
SARVAJIT SAHA
SARVAJIT SAHA - 25.01.2021 10:05

Do I need to put batch file inside winscp folder ?

Ответить
Bill CBR
Bill CBR - 08.01.2021 22:34

Thanks for posting. The issue here though is that you store the credentials for connecting to the SFTP server in the script in plain text. Have you used a method where you don't have to save the PW in plain text?

Ответить
Vijay S
Vijay S - 26.10.2020 23:25

Does it synchronize the folders inside. for e.g if the folder exists in local but not in remote, will this command create that folder in remote with the contents

Ответить
Supun Buddharage
Supun Buddharage - 08.10.2020 13:32

Thanks, this is very helpful

Ответить
edseljay gavino
edseljay gavino - 13.08.2020 10:25

not working on my end
Would it work if the port for SFTP in my cpanel is not 22?
can i run the .bat file in any folder as long it was on the computer?

Ответить
imron ade rangga
imron ade rangga - 22.04.2020 06:57

Thank you for your video,

if I want to download files in a folder that someone else just uploaded with a pattern name, can I do it automatically? for example every 8 pm download files in the newly uploaded folder

Ответить
mor_PH_eus
mor_PH_eus - 07.04.2020 10:56

good video... is there possibility to run script which can copy startup config from switch to backup server?

Ответить
Connor
Connor - 02.04.2020 09:13

winscp.com' is not recognized as an internal or external command, operable program or batch file.


Could you please tell me what went wrong? I've been trying for like 3 hours and i can't figure it out. I also don't have your ssh-rsa hostkey. Mine looks more like SHA 256....

Ответить
Mazarello Fernandes
Mazarello Fernandes - 21.03.2020 12:23

Doesn't work for me for some reason.

Ответить
Vi
Vi - 29.08.2019 08:58

Thanks much !! Finally Will <synchronize remote A B> will work both ways, I need to upload /add file to B

Ответить
Rodrigo Nunez
Rodrigo Nunez - 23.07.2019 02:31

Thanks, CodeCowboysOrg. It worked great. You saved me at least 2 hours of work every day!. Subscribed.

Ответить
PaPasha86
PaPasha86 - 10.04.2019 12:04

Thank you very much. Very helpful. And tell me how to make a mirror? I need that files be deleted on the local computer and also deleted in the folder for synchronization?

Ответить
Esteban Rodriguez
Esteban Rodriguez - 08.04.2019 23:27

Great video but what if the FTP Server I want to connect is using a different port insted of default 21?

Ответить
Obaidullah Khan
Obaidullah Khan - 28.03.2019 22:40

Thanks man :) this is very helpful

Ответить
Roni z
Roni z - 04.02.2019 14:43

how can I use this with FTP and not SFTP? in FTP I dont have a key..

Ответить
Pankaj Sharma
Pankaj Sharma - 02.01.2019 23:37

Getting access denied error. Anyone had same and got it resolved?

Ответить
Zack123
Zack123 - 07.11.2018 03:22

can the synchronize command take a remote admin share directory instead of the local c:\temp? e.g. as per your example synchronize remote \\server2\c$\temp /home/sftpuser04/Source

Ответить
SrinivasaRao Gurram
SrinivasaRao Gurram - 17.10.2018 23:02

Hi, First Time when I connect, it will show the hotkey or secret key. How about the sub-subsequent time of showing the key from winscp

Ответить
Hugo Santillana Salazar
Hugo Santillana Salazar - 25.09.2018 19:27

Excelente Tutorial!, se debe tener en cuenta 2 cosas para que funcione:
1. Instalar en modo personalizado el winscp y agregar la variable de entorno a Windows.
2. Dentro del winscp ir a: Archivos->nombre de archivos -> generar url del archivo

Con eso se contruye el plano .txt para que funcione el .bat

Gracias desde Colombia!

Ответить
nizam kn
nizam kn - 12.08.2018 16:11

@CodeCowboyorg, I tried this script and it's working for me. I need to run run script using the Task Schduler . How I can do that ?

Ответить
Tony Hilary
Tony Hilary - 12.07.2018 18:21

what about if you wanted to copy files for the last 7 days instead of copy the whole files from one directory to another?

Ответить
girlmastergeneral
girlmastergeneral - 12.05.2018 04:47

Thank you so much for posting this! You've made my night awesome. I thought i'd never solve this problem but this fixed it asap

Ответить
David Tobasura
David Tobasura - 28.02.2018 16:36

How do I active the commands like open. I got this:

"'open' is not recognized as an internal or external command,
operable program or batch file."

Ответить
Serhat Karasu
Serhat Karasu - 21.10.2017 13:46

merhaba ben ftp kullanarak otomatik dosya gönderme yapmak istiyorum fakat yapamadım bu konuda yardımcı olabilir misiniz ?
kodu nerede yazmam gerekiyor . işlem adımlarını yazabilir misiniz ?

Ответить
chicken leg on the move
chicken leg on the move - 01.08.2017 11:44

how about moving file only?

Ответить
Gerald Barrantes
Gerald Barrantes - 14.06.2017 17:12

Gracias fuiste de mucha ayuda saludos desde Costa Rica !!

Ответить