RSS Links

 

Here are all of the RSS links for sections of this site

VB.NET/ASP.NET
 Java
 Unix/Linux
 Windows
 SQL Server

Home arrow VB.NET/ASP.NET arrow Check if a file or directory exists in VB.NET/ASP.NET
Check if a file or directory exists in VB.NET/ASP.NET PDF Print E-mail
Monday, 19 January 2009

To check to see if a file exists use :-


IO.File.Exists("d:\someFileName.txt")

 

To check to see if a directory exists use :-


IO.Directory.Exists("c:\myFolder")


Thanks to http://www.vbforfree.com/?p=180 for this tip
Last Updated ( Monday, 19 January 2009 )
 
< Prev   Next >
 
Designed by Graham Robinson Software