I have a web page that is only used by people here in the office. In this web page, I need to check to see if some files exist on the server.
How would I do this?
Also, how could I get the date and time the file was created.
Thanks!
Printable View
I have a web page that is only used by people here in the office. In this web page, I need to check to see if some files exist on the server.
How would I do this?
Also, how could I get the date and time the file was created.
Thanks!
Are the files always in the same folder? If so, just set the security on that folder to allow the asp.net account to access it.
They are in the same folder everytime. I don't think there is a security issue. I just don't know the code to use to tell me if the file is there or not, and the date and time the file was created.Quote:
Are the files always in the same folder? If so, just set the security on that folder to allow the asp.net account to access it.
Any code you could provide would be greatly appreciated.
By the way, I am using VB .Net
Thanks!
Anyone?
System.IO.File.Exists("C:\somefile.txt")
Use things like that. All the functionality you need is in there:
System.IO