| View previous topic :: View next topic |
| Author |
Message |
sosaited
Joined: 24 Feb 2005 Posts: 233
|
Posted: Thu Jun 29, 2006 10:01 pm Post subject: Windows FTP Program (or similar) for AHK use |
|
|
I want to upload and download files from my site through FTP. Can anyone tell me of a DLL FTP client that can be used with AHK easily... or any other way to effectively work with FTP using AHK. (Without windows poping up)
Thanks _________________ My small "thanks" to AHK in shape of these dedicated 3d images (Topic already in "General" Forum)  |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Fri Jun 30, 2006 6:37 am Post subject: |
|
|
DllCall: Basic FTP Functions _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
sosaited
Joined: 24 Feb 2005 Posts: 233
|
Posted: Fri Jun 30, 2006 7:16 pm Post subject: |
|
|
This method is great. I have already checked WinInet on MSDN (Though still not tested it), It can create problems where Internet Connection speed is low or where Internet Traffic is High. For Example, during High Traffic, If I Call WinInet to create a Directory, and them copy a file in the directory and then do something else on the same FTP, I can never know when did the previous command finished (There might be some chance to know file uploading status by FTPFileGetSize function).
Any Help on this matter would appreciated.
Thanks _________________ My small "thanks" to AHK in shape of these dedicated 3d images (Topic already in "General" Forum)  |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Sat Jul 01, 2006 7:07 am Post subject: |
|
|
I didn't tested those functions, I suggest you post your issues (if not already done) on the related topic.
Otherwise, I would use cURL, which seems to have good support of FTP. Not a DLL (or perhaps if there is a curllib DLL), but extensive set of options via command line switches.
I searched recently a good program to synchronize files between a local copy of a site and the remove version. Surprisingly, there aren't much! FileZilla, though great, necessitate to choose each file to update, which is inconvenient if you modified lot of files throught the site.
Perhaps I have to write my own.
Note that comparing file dates between local and distant isn't reliable because of time shift. So either the program tracks the difference and computes the right time difference, with an error margin. Or it saves the state of the files at update time, and compares local time and saved time to see if it was updated. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
|