AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Windows FTP Program (or similar) for AHK use

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat
View previous topic :: View next topic  
Author Message
sosaited



Joined: 24 Feb 2005
Posts: 233

PostPosted: Thu Jun 29, 2006 10:01 pm    Post subject: Windows FTP Program (or similar) for AHK use Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Fri Jun 30, 2006 6:37 am    Post subject: Reply with quote

DllCall: Basic FTP Functions
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
sosaited



Joined: 24 Feb 2005
Posts: 233

PostPosted: Fri Jun 30, 2006 7:16 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Sat Jul 01, 2006 7:07 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group