file attributes from a 'web file'

  • Thread starter Thread starter Ram Baruch
  • Start date Start date
Ram,

You can not do this. Unless the website exposes some sort of mechanism
for this information, you don't know if the file actually exists. For
example, I could have a file with a jpg extention that I can get from a web
server, but that file might not actually exist, it might be dynamically
generated.

Hope this helps.
 
Thanks for Nicholas's quick response!

Hi Ram,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to get the attributes for a
file on the website. If there is any misunderstanding, please feel free to
let me know.

As far as I know, we cannot get these information if the server doesn't
expose them. We can try to write a webservice for the client to get them.
Here is an example:

[WebMethod]
public DateTime dt()
{
return System.IO.File.GetCreationTime("MACHINES.INF");
}

HTH. If anything is unclear, please feel free to reply to the post.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Back
Top