Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dating and the single FTP
Message
De
09/07/2002 01:51:28
 
 
À
08/07/2002 15:02:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00676158
Message ID:
00676446
Vues:
14
Glenn,

'SITE exec' is not a M$ variety. Most ftp servers allow it as far as I know.
I've used it in the past (took me a couple of days though to get it working)

your best bet is (as it handles the timestamp and reduces the data to transfer)
(1) zip
(2) transfer
(3) unzip remotely (with site exec)

I've got some code laying around if you need it

Gregory

>Thanks, I did not think it would be a "supported" feature. It looks like the server will always be a M$ variety, and I do not know of a command on WinX that will allow the timestamp to be altered.
>
>Glenn
>>>It is not that I don't know the correct time for that timezone, but rather I donn't know how to change the timestamp on the FTP server using VFP client FTP software.
>>>
>>>Glenn
>>>
>>>>>>Is there any way of controlling the destination timestamp with FTP? I am sending files from a client (W98/2000/ME/XP) to a server (w2000/XP) and need to preserve the client timestamp on the server. Any ideas???
>>>>>>
>>>>>>Glenn
>>>>>
>>>>>Why not use additional info file (maybe XML) to check the timestamp (I think you need to check version)?
>>>>>What about different clients in different timezones?
>>>>
>>>>When I need to account for timezones, I usually store the GMT time and the timezone offset - that way you can figure out the time regardless of timezone. If Glenn places these two bits of info into the record file, and knows the timezone/offset of the client's location, he should be all set.
>>
>>Glenn,
>>
>>The only way I see is to remotely execute a command after the transfer.
>>
>>Something like the unix touch command, no doubt (rather) easily found on the web if you havn't got it alreeady
>>
>>The touch.exe has to be on the remote site. If not you will have to transfer it first
>>
>>After the transfer something like
>>
>>
>>local cmd, ResultHandle
>>
>>cmd =  'site exec c:\command.com /c touch 200212311859.59 \dir1\dir2\file.ext' + chr(0)
>>ResultHandle = 0
>>
>>ftpCommand(ftpHandle, 0, FTP_TRANSFER_TYPE_ASCII, @cmd, @ResultHandle )
>>
>>
>>
>>You can even transfer all files while building an xxx.bat file which holds all the touch commands.
>>Afterwards, transfer the xxx.bat to the remote site and have it executed
>>
>>Let me know if you need further help
>>
>>another possiblility is to zip/xcopy the files, transfer them and unzip them with a .bat
>>
>>3rd Possibility: zip locally, zip2exe to eg files.exe , transfer, remotely execute the files.exe, delete remote files.exe
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform