Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dating and the single FTP
Message
From
08/07/2002 13:24:55
 
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00676158
Message ID:
00676218
Views:
15
This message has been marked as a message which has helped to the initial question of the thread.
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform