Yashied Posted May 1, 2009 Share Posted May 1, 2009 (edited) LAST VERSION - 1.001-May-09Deprecated.Here is my version of FTP UDF library.Available functions_FTP_Startup_FTP_Shutdown_FTP_Open_FTP_Close_FTP_Connect_FTP_Disconnect_FTP_GetCurrentDir_FTP_SetCurrentDir_FTP_CreateDir_FTP_DeleteDir_FTP_OpenFile_FTP_CloseFile_FTP_DeleteFile_FTP_RenameFile_FTP_FileFindFirst_FTP_FileFindNext_FTP_FileFindClose_FTP_ReadFile_FTP_WriteFile_FTP_GetFileSize_FTP_GetFile_FTP_PutFileFTP UDF Library v1.0Previous downloads: 104FTP.au3WinINet Error Codes (Optional)Previous downloads: 90WinINetErrorMessages.au3Example1#Include <FTP.au3> Global Const $Host = 'ftp.mozilla.org' Global Const $Login = '' Global Const $Password = '' Global $hFtp, $hSession, $hFile, $tBuffer, $nSize, $nBytes _FTP_Startup() $hFtp = _FTP_Open('MyFtp') $hSession = _FTP_Connect($hFtp, $Host, $Login, $Password) $hFile = _FTP_OpenFile($hSession, 'README') $nSize = _FTP_GetFileSize($hFile) $tBuffer = DllStructCreate('byte[' & $nSize & ']') _FTP_ReadFile($hFile, $tBuffer, $nSize) _FTP_CloseFile($hFile) $hFile = _WinAPI_CreateFile('README', 1) _WinAPI_WriteFile($hFile, DllStructGetPtr($tBuffer), $nSize, $nBytes) _WinAPI_CloseHandle($hFile) _FTP_Disconnect($hSession) _FTP_Close($hFtp) _FTP_Shutdown()Example2#Include <FTP.au3> Global Const $Host = 'ftp.mozilla.org' Global Const $Login = '' Global Const $Password = '' Global $hFtp, $hSession, $hFind, $tFind _FTP_Startup() $hFtp = _FTP_Open('MyFtp') $hSession = _FTP_Connect($hFtp, $Host, $Login, $Password) $tFind = DllStructCreate($tagWIN32_FIND_DATA) $hFind = _FTP_FileFindFirst($hSession, '', $tFind) While Not @error ConsoleWrite(DllStructGetData($tFind, 'FileName') & @CR) _FTP_FileFindNext($hFind, $tFind) WEnd _FTP_FileFindClose($hFind) _FTP_Disconnect($hSession) _FTP_Close($hFtp) _FTP_Shutdown() Edited December 25, 2013 by Yashied My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
Zedna Posted May 1, 2009 Share Posted May 1, 2009 (edited) Look here:http://www.autoitscript.com/trac/autoit/ticket/271Completed Feature Requests (Sorted by Milestone)FTP - make it as standard include file (or native AutoIt)Added in version: 3.3.1.0 Edited May 1, 2009 by Zedna Resources UDF Â ResourcesEx UDF Â AutoIt Forum Search Link to comment Share on other sites More sharing options...
Yashied Posted May 1, 2009 Author Share Posted May 1, 2009 (edited) Look here:http://www.autoitscript.com/trac/autoit/ticket/271Completed Feature Requests (Sorted by Milestone)FTP - make it as standard include file (or native AutoIt)Added in version: 3.3.1.0It would be great. But now I'm using this UDF, and decided to share them.EDIT: I think it would be good to build in AutoIt function InetPut() (in their own threads) like InetGet(). Edited May 1, 2009 by Yashied My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
Splash Posted June 10, 2009 Share Posted June 10, 2009 Nice man!!! Automatic Update UDF - IP Address UDF - WinPcap AutoIt _FindDevice()[font="Verdana"][size="2"]AutoIt Spanish/Brasil/World community!!![/size][/font]Use you wanna a dot.tk domain please use my link: Link to comment Share on other sites More sharing options...
Yashied Posted June 10, 2009 Author Share Posted June 10, 2009 (edited) 196 downloads and only 2 replies? Edited June 10, 2009 by Yashied My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
myspacee Posted June 10, 2009 Share Posted June 10, 2009 (edited) Nice ! find your version more simple to use Can you post some code for most common operation ? (_FTP_GetFile, _FTP_putFile, etc) good job, m. Edited June 10, 2009 by myspacee Link to comment Share on other sites More sharing options...
Splash Posted June 10, 2009 Share Posted June 10, 2009 @myspacee: read the code comments Automatic Update UDF - IP Address UDF - WinPcap AutoIt _FindDevice()[font="Verdana"][size="2"]AutoIt Spanish/Brasil/World community!!![/size][/font]Use you wanna a dot.tk domain please use my link: Link to comment Share on other sites More sharing options...
Xwolf Posted October 29, 2009 Share Posted October 29, 2009 Good jobs. Thanks. Link to comment Share on other sites More sharing options...
wwant Posted December 8, 2009 Share Posted December 8, 2009 Good Job Link to comment Share on other sites More sharing options...
Shiro Posted June 14, 2010 Share Posted June 14, 2010 where i have to put the location of my zip file which i want to upload? Link to comment Share on other sites More sharing options...
Yashied Posted June 14, 2010 Author Share Posted June 14, 2010 where i have to put the location of my zip file which i want to upload?C:\Data\Game17\G3\Uploaded\ My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
Shiro Posted June 15, 2010 Share Posted June 15, 2010 it's not working for me. i just want to upload a file. here is what i tried... #Include <FTP.au3> const $Host = 'ftp.fadelsalehco.com' const $Login = 'root_1' const $Password = '*******' local $hFtp, $hSession, $hFile, $tBuffer, $nSize, $nBytes _FTP_Startup() $hFtp = _FTP_Open('MyFtp') $hSession = _FTP_Connect($hFtp, $Host, $Login, $Password) _FTP_PutFile($hSession, "c:\web\index.php", "public_html\index.php", $lFlags = INTERNET_FLAG_TRANSFER_BINARY, $lContext = 0) _FTP_Disconnect($hSession) _FTP_Close($hFtp) _FTP_Shutdown() Link to comment Share on other sites More sharing options...
NewTester Posted July 20, 2010 Share Posted July 20, 2010 hey guys, uploading to ftp using Putftp() seems to be working fine...........but please let me know how to download files from FTP because _FTP_FileGet is not working for me,every time i get return value as 0please help me as this is very very urgent requirement 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