pdinillo Posted May 1, 2011 Share Posted May 1, 2011 (edited) i have write this code so far....it's only an extract $server ='my server' $username ='my username' $pass = 'my password' $location = 'with this create a folder where i save the file' $dllhandle = DllOpen('wininet.dll') $port='21' $Open = _FTPOpen('MyFTP Control') $Conn = _FTPConnect($Open, $server, $username, $pass) _FTPMakeDir($Conn,$destination) $Ftpp = _FTPPutFolderContents($Conn, @MyDocumentsDir & '\And here the folder that have selected', $location,0) $Ftpc = _FTPClose($Open) with this code i can upload the content of the folder that i have selected, but if there is a sub-folder, upload the folder empty......i would upload all file. p.s sorry for my english Edited May 1, 2011 by pdinillo Link to comment Share on other sites More sharing options...
evilertoaster Posted May 1, 2011 Share Posted May 1, 2011 (edited) Not sure what FTP UDF you're using...maybe try using the 'official' one bundled with the installer: #Include <FTPEx.au3> $server ='my server' $username ='my username' $pass = 'my password' $location = 'someFolder' $Open = _FTP_Open('MyFTP Control') $Conn = _FTP_Connect($Open, $server, $username, $pass) _FTP_DirCreate($Conn,$location) $Ftpp = _FTP_DirPutContents($Conn, @MyDocumentsDir & '\And here the folder that have selected', $location,1) $Ftpc = _FTP_Close ($Open) Edited May 1, 2011 by evilertoaster Link to comment Share on other sites More sharing options...
sahsanu Posted May 1, 2011 Share Posted May 1, 2011 @pdinillo, just use evilertoaster example script and it will work fine. I think you only want to upload files and directory structure (no recursive) so just a little modification to evilertoaster script, change flag 1 to 0 in _FTP_DirPutContents function. Link to comment Share on other sites More sharing options...
pdinillo Posted May 2, 2011 Author Share Posted May 2, 2011 $location,1) work....thx man Link to comment Share on other sites More sharing options...
Valik Posted May 4, 2011 Share Posted May 4, 2011 Why did you report this thread only to say "solved"? In the future please don't waste our time reporting threads that do not need reported. 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