digitalrahman Posted April 2, 2013 Share Posted April 2, 2013 Hello,Trying to see if I can -Open an FTP connection - Got itGrab the file named - hourlydata.csv ( need to use a wild card here as sometimes the file can have a name like hourlydata(1).csv or hourlydata(2).csv *** - need help I need to then delete the file from this folder - need help and move to the new folder - Got it and rename the file newfilename.csv - Got itIt would be awesome if it could also bulk upload filesHere is where I am so far#include <FTPEx.au3>$host = "ftp.xxxxx.com" $user = "username" $pass = "mypassword" $newfolder = "/Hello/hourlydata*.csv" $origfolder = "/Hello/New/newfilename.csv" $open = _FTP_Open("Myftp") $conn = _FTP_Connect($open, $host, $user, $pass,0,0) _FTP_FileRename($conn, $newfolder, $origfolder) _FTP_Close($open) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now