pdinillo 0 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 Share this post Link to post Share on other sites
evilertoaster 3 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 Share this post Link to post Share on other sites
sahsanu 28 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. Share this post Link to post Share on other sites
pdinillo 0 Posted May 2, 2011 $location,1) work....thx man Share this post Link to post Share on other sites
Valik 478 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. Share this post Link to post Share on other sites