The System.IO.File.GetAttributes method is valid for only files on the local system.
In my application I was trying to access a file attribute over https://. Please let me know if there is any such class/method (in .net), to get a file attributes over http(s).
Also, it will be great if there is any such Windows CommandPrompt command to achieve the same.
Do let me know.
Thanks.
You can’t. It would be huge security violation.
You could write a WCF Service that returns the attributes you are interested in, however.
Or you may be interested in setting up a WebDAV share.