myspacee Posted April 9, 2010 Posted April 9, 2010 Hello to all, to help my users with long procedure, i create a script that has as result a folder with some subfolder with files in it. (flash flipbook) After this they have to upload this folder to an FTP, but not all operators have same skill so i'm searching easy way to upload an entire folder structure to an FTP using a script. Cna anyone point me in right direction ? thank you for reading, m.
myspacee Posted April 9, 2010 Author Posted April 9, 2010 make some step: #include <ftp.au3> ;//////////////////////////////////////////////////////////////////// ;// user options ;//////////////////////////////////////////////////////////////////// $my_ip = "100.100.100.100" $my_login = "login" $my_pwd = "password" $my_local_dir = "C:\testpv" $my_remote_dir = "/testpv" ;//////////////////////////////////////////////////////////////////// ;// OPEN FTP session ;//////////////////////////////////////////////////////////////////// $dllhandle = DllOpen('wininet.dll') $Open = _FTPOpen ('MyFTP Control',0) If @error Then Failed("Open") $Conn = _FTPConnect ($Open, $my_ip, $my_login, $my_pwd) If @error Then Failed("Connect") _FTPMakeDir($Conn, $my_remote_dir) ;I make folder that contain your files and directory _FTPPutFolderContents($Conn, $my_local_dir, $my_remote_dir, 1) ;I copy stuff into FTP _FTPClose ($Open) DllClose($dllhandle) Used an FTP.au3 find somewhere in my hardisk (maybe teammc.cc ones ? (http://teammc.cc/aut_ftp/)) IT works, upload entire subfolder and files from given local folder, but, skip files in root\, anyone can suggest me how correct ? Thank you, m.FTP.au3
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