Login | |
|
 |
RE: FTP Sync Script - 6/17/2008 7:07:44 PM
|
|
 |
|
| |
4scriptmoni
Posts: 208
Score: 0
Joined: 5/3/2007
Status: offline
|
Nobody has never done such thing? I searched in google and found an activeX by Chilkat.Ftp2 but not even that worked for me... this function ftp.SyncLocalTree did not work for me... My code is still not working neither :( The problem is - Newer local files not been copied to FTP and getting replaced by servers'SyncFiles, not good anymore because when FTP files are downloaded they get new date! any idea?
_____________________________
Enterprise Microsoft Scripts Exchange, Login/Logout Monitor,TS, Monitoring, Security, AD, etc... http://www.felipeferreira.net
|
|
| |
|
|
|
 |
RE: FTP Sync Script - 6/18/2008 2:11:17 PM
|
|
 |
|
| |
DiGiTAL.SkReAM
Posts: 1184
Score: 7
Joined: 9/6/2005
From: Florida, USA
Status: offline
|
hehehh I ran into the same issues. My solution was to script a commandline interface for the freeware version of coreftp. It contains a resume, etc. feature that can be utilized to perform a sync of folders. but then, i'm lazy.
_____________________________
"Would you like to touch my monkey?" - Dieter (Mike Meyers) "It is better to die like a tiger, than to live like a pussy." -Master Wong, from Balls of Fury
|
|
| |
|
|
|
 |
RE: FTP Sync Script - 6/19/2008 6:03:08 PM
|
|
 |
|
| |
4scriptmoni
Posts: 208
Score: 0
Joined: 5/3/2007
Status: offline
|
If I do hash the file after downloading... How will I know witch one is newer and Witch one I should overwrite? The idea is to sync with the newer file. The Primalscript.FTPTransfer does not have a sync function does it? In the examples I only see download/upload. THe only option I thought now was to parse a dir cmd inside FTP witch does diplay the something like: "-rw-r--r-- 1 xoroz xoroz 15728640 Jun 19 18:44 small"
_____________________________
Enterprise Microsoft Scripts Exchange, Login/Logout Monitor,TS, Monitoring, Security, AD, etc... http://www.felipeferreira.net
|
|
| |
|
|
|
 |
RE: FTP Sync Script - 6/19/2008 8:48:26 PM
|
|
 |
|
| |
4scriptmoni
Posts: 208
Score: 0
Joined: 5/3/2007
Status: offline
|
ok I was able to parse the ftp dir remote cmd, now I need to compare two values, I was thinking about using two dictonaries to verifiy first if files exists and compar date and time. I have remote FTP files output as: small|19\06|18:44 And local sync folder files as: TS2.hta|06/06|19:38 Is it a good idea the dictonary? any help is welcome... 'Now I have a dictonary of each side 'Compare that local files are also in remote if not upload and vice-versa but download 'then compare local files are newer then in remote if so upload and vice-versa but download key: small Item: 19\06|18:44 small|19\06|18:44
< Message edited by 4scriptmoni -- 6/19/2008 9:48:08 PM >
_____________________________
Enterprise Microsoft Scripts Exchange, Login/Logout Monitor,TS, Monitoring, Security, AD, etc... http://www.felipeferreira.net
|
|
| |
|
|
|
|
|