Link to home
Start Free TrialLog in
Avatar of accessloans
accessloans

asked on

Checking dotnet and mapped drive are installed at form load using vb.net

I have written a written a program in vb.net which retrieve data from an access database. I want the program to check at form load that the dotnet framework is installed on the PC and that the access database is reachable over a mapped drive. The mapped location is k:\curtains.mdb.
Avatar of Howard_Roberts
Howard_Roberts

If your application is a .NET application then it will not run if the framework is not installed.  So, I think that will answer the first part.  To check for the access db you could use the system.io.file.exists shared method and see if the access .MDB file exists in the path specified
ASKER CERTIFIED SOLUTION
Avatar of JunnickYso
JunnickYso
Flag of Philippines image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Or yu can just use the system.io namespace file object like I mentioned before.
        If System.IO.File.Exists("c:\my.mdb") Then
        End If