Tuesday, 28 August 2012

Check if file path exits VB.NET






The following checks to see if the directory \ folder exists

If Directory.Exists(mypath) = False Then
---- do something
end if

This one checks if the file exists


If File.Exists(mypath) = False Then
---- do something
end if


Simple but effective

No comments:

Post a Comment

Multi Point USB Charger

  USB Plug Charger, 4-Port USB Fast Charger Plug with 33W Intelligent Quick Charge 3.0 Wall Charger, Multi USBPower Adapter UK Fast Charging...