473,396 Members | 2,158 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Retrieve timestamp of remote file

Heya,

googling\liveing around, but I found no results - any ideas how to
retrieve timestamp of remote file (http\ftp)???

Idea is to build auto update utility that could (based on timestamps)
notify you whenever new version is available...

Thanks for any ideas\suggestions (and especially link or bits of
code),

Martin
Jun 27 '08 #1
2 2232
On May 26, 11:24 pm, Martin Zugec <martin.zu...@gmail.comwrote:
Heya,

googling\liveing around, but I found no results - any ideas how to
retrieve timestamp of remote file (http\ftp)???

Idea is to build auto update utility that could (based on timestamps)
notify you whenever new version is available...

Thanks for any ideas\suggestions (and especially link or bits of
code),

Martin
Hi Martin,
Are you able to download the file if it's not too large. Because if it
was a local file, you would simply access file info using
System.IO.FileInfo class. If remote file resides on a FTP server, you
can check this out:

http://www.codeproject.com/kb/IP/FTPBypkhach.aspx

Hope this helps,

Onur Güzel
Jun 27 '08 #2
On May 27, 11:18*am, kimiraikkonen <kimiraikkone...@gmail.comwrote:
On May 26, 11:24 pm, Martin Zugec <martin.zu...@gmail.comwrote:
Heya,
googling\liveing around, but I found no results - any ideas how to
retrieve timestamp of remote file (http\ftp)???
Idea is to build auto update utility that could (based on timestamps)
notify you whenever new version is available...
Thanks for any ideas\suggestions (and especially link or bits of
code),
Martin

Hi Martin,
Are you able to download the file if it's not too large. Because if it
was a local file, you would simply access file info using
System.IO.FileInfo class. If remote file resides on a FTP server, you
can check this out:

http://www.codeproject.com/kb/IP/FTPBypkhach.aspx

Hope this helps,

Onur Güzel
Hi Onur,

I cant download it - idea is quite simple:
1.) You create list of your favorite programs and specify where did
you download them (PsTools=http://download.sysinternals.com/Files/
PsTools.zip)
2.) Time stamp of that file is saved
3.) When you run this tool, it will check last time stamp with
current. If there is difference, it will report that new version is
available.

I have this working currently from batch script using wget - problem
is that if I want to use more advanced methods, for example if file
contains also version (like PsTools_2.1.zip), I need some more
intelligent parsing (HREF etc) and this is almost impossible from
batch scripts.

So I am trying to find some way how to get timestamp of remote file -
then I'll be able to rewrite my script to normal tool with GUI and
some advanced features.

If I won't find a way, I will probably need to just parse output from
wget, but I would prefer to find other way than this :(

Martin
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Gert Jan Wiersema | last post by:
Dear Group, I have apache running on a win2k machine. When I try to use time(); or date();, I get the 01-01-70 returned. Must be a setting in the apache config, but where? Thanks, Gert
2
by: J_axx | last post by:
Wow I was told this is a grate place for info I did not believe um but I was wrong I have 4 ASP pages on my site & a DB for each page has a form pointing at its DB, I thought this would be the...
2
by: jay | last post by:
hi, Question on Load/import command. consider a sample table create table table_name ( col1 timestamp not null default current timestamp, col2 int, col3 int, col4 int, primary key(col1) );...
6
by: Greg Collins [MVP] | last post by:
For background, please refer to my original thread: http://groups.google.com/groups?selm=efe5w7tYEHA.3112%40tk2msftngp13.phx.gbl I've thought of a potential way around the issue, but I'm new to...
2
by: FayeC | last post by:
I have created a site in Joomla with a login (no self registration, users are provided with username and password by the admin). The users are supposed to login to a specific page where they can...
5
by: ggk517 | last post by:
We are trying to develop an Engineering application using PHP, Javascript with Informix as the back-end. Is it possible to retrieve data using Javascript but by accessing the Database. Say...
5
by: cooch17 | last post by:
There are lots of ways to use javascript to embed the current date/time in a page. But, what I would like to do is the following - have a script pop up a box when the user hovers over a link,...
2
by: * Tong * | last post by:
Hi, I'm wondering if you can show me an example php page that allows me to retrieve and display 3rd party pages. I.e., when my php script is called as http://site/path/getit.php?file_key it...
3
by: patelss23 | last post by:
Hello All, I want to download latest file based on its timestamp from one FTP server. So can you please tell me is there any way to find the timestamp of files weather they are on local machine...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.