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.
Visual Basic.NET

Avatar of undefined
Last Comment
Howard_Roberts
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

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
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
Visual Basic.NET
Visual Basic.NET

Visual Basic .NET (VB.NET) is an object-oriented programming language implemented on the .NET framework, but also supported on other platforms such as Mono and Silverlight. Microsoft launched VB.NET as the successor to the Visual Basic language. Though it is similar in syntax to Visual Basic pre-2002, it is not the same technology,

96K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo