Continuously upload files to FTP using PowerShell
Sometimes we need to continuously upload files to FTP from local disk. We can do it using the following PowerShell Script. import-module NetCmdlets $i=5 while ($i -eq 5){ new-item c:\wgrywam -itemtype directory Get-ChildItem C:\CB08 -Recurse |? {$_.LastWriteTime -le (get-date).AddMinutes(-3)} |% {move-item $_.Fullname c:\wgrywam} Get-ChildItem C:\wgrywam -Recurse |% {send-ftp -server ftp.pol.pl -user uzytkownik -password haslo -localfile […]