Checking File avilabilty

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • donilourdu
    New Member
    • Jan 2007
    • 53

    Checking File avilabilty

    Hi

    I am Doni. Currently doing a website.It contains lots of images. While loading page I need to check wether the images are ailable or not. All the images are in separate server.


    i.e. My Code in Server A . My images are in Server B , Server C ,.....
    (I having same images in two different servers. If one fails means I need to go for next Vice versa). So Here I need code to cheack that location or image is avilable in that particular server.

    Looking for favour.

    with regards,
    Doni Agna Lourdu.
  • Shashi Sadasivan
    Recognized Expert Top Contributor
    • Aug 2007
    • 1435

    #2
    Have you tried the DirectoryInfo and FileInfo Classes ?
    I think they are in System.IO Namespace

    Comment

    Working...