How to check a DLL exists in system or not

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manjusaharan
    New Member
    • May 2008
    • 2

    How to check a DLL exists in system or not

    Hi all,


    I have an once click application which uses microsoft.mshtm l.dll(size 8 mb). I want that this DLL should be downloaded only when client machine dosenot have this DLL otherwise it should skip this file's downloading.

    Can anybody tell me how to check whether a dll present in the system or not?

    Kindly help me in solving this problem.
    Thanks in advance.

    Manju Saharan
  • ammoos
    New Member
    • Apr 2007
    • 100

    #2
    Please use the File.Exists() to check the dll is exist or not

    eg.


    if(File.Exists( "D:/abc.dll"))
    Response.Write( "exist");
    else
    Response.Write( " not exist");

    Comment

    Working...