Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieving file properties of a file on a web server

Status
Not open for further replies.

newora

Programmer
Aug 19, 2003
133
GB
Hi There,

I wonder if someone could please help me with an issue I am having with regards to getting the properties of a file on a remote web server.

I have only been using VB .NET for a few months and I am still trying to get used to the loads of classes that are exposed via the framework!!

Anyway I want my program to go to a file/URL on a web server and check it's created / updated properties and if it has changed, from what I wil hod in a database, then I will perform a pre-determined action.

I have tried to use the fileversioninfo class, which works OK for local drives but will not work on a URL file i.e.
If anyone could point me in the right direction, it would be much appreciated.

Thanks
Newora
 
You'll probably need a process on the web server to return that info to you. Or look into writing a WebDAV client if this is for a non-production server.

Chip H.


____________________________________________________________________
Donate to Katrina relief:
If you want to get the best response to a question, please read FAQ222-2244 first
 
OK chiph, thanks for that - I think I will probably look into writing a simple service to run on the web server that will just look at the required files properties and then create a flag file or something when the web server file gets updated.

I suppose it could be an XML web service, could it not?

Thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top