Check if a certain file exists - Visual Basic .NET

Tags: VB.NET, VB 2008, VB 2010, VB 2012, VB 2013

The following code is used to check if a file (picture, document, video, pdf, etc...) exists on your computer:

If My.Computer.FileSystem.FileExists("C:\location\") Then
'file does exist
'/ Do Action

' file doesn't exist
End If

Share This

Home | About | Contact | Privacy Policy

Copyright 2018 - All Rights Reserved.