Hello,
This codes are uploading the files to FTP Server, but i need modification to automate it, being a newbie its very difficult for me to get the result, I need help.
1. The script to monitor the local folder continously and if files are found upload to FTP site.
2. Once the files are uploaded it must not re-upload the same files. Its very important we upload lots of files. Any ways to move the files from folder to other folder once the upload is successful.
3. The files uploaded are moved from ftp folder and a response file is delivered within few seconds with same name an additional extension named .REPL
$server = "17x.xxx.x.x"
$filelist = "c:\somefolder\TLS_01_09012014_143312.xml c:\somefolder\TPP_01_09012014_143312.xml c:\somefolder\APP*.xml
$user = "user"
$password = "password"
open $server
user $user $password
binary
cd $dir
" +
($filelist.split(' ') | %{ "put ""$_""`n" }) | ftp -i -in
Any Helps.