Answer the question
In order to leave comments, you need to log in
How to automatically upload files to the server?
OS windows 7
D:\file\ - the folder you need to monitor
As soon as files appear in the folder, you need to upload them via ftp to the server.
What is the easiest way to do this? Maybe someone met ready-made solutions?
Answer the question
In order to leave comments, you need to log in
There are many programs that allow you to synchronize your local directory with FTP.
Well, as a variant of WinSCP
Well, or split the task into two subtasks
- 1) Track changes in the folder - there are a lot of scripts in different languages, it's easy to google.
2) Transfer changed files to ftp - well, here is either a regular windows ftp client from the command line, or something more convenient like wput.
As a result, a task in the scheduler that will run scripts at the required frequency.
as an example of implementation, in addition to Artem
https://gallery.technet.microsoft.com/scriptcenter...
What kind of action and how to hang on events - I think you'll figure it out yourself.
This, accordingly, is the frequency in the scheduler - we hang the script at the start of the computer and it will monitor your folder.
One thing: powershell without connecting .net classes, you will not be able to use the client built into OS ftp.
And a lot still depends on the ftp server settings. - here you can check which console utility suits you and which does not
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question