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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
If System.IO.File.Exists("c:\
End If