Check if a File or Directory Exists using Visual Basic 6.0
Tuesday, April 8th, 2008There could be a time when you need to check if files or folders/directories exists or not. There are actually a few different ways to accomplish this task. Some ways is by messing around with the Dir Function located in the FileSystem Class, the Windows API or using the FileSystemObject located in the [...]
Check if a Specified File or Directory Exists in VB 2005/2008
Monday, June 18th, 2007'Check whether a File or Directory/Folder exists using MY with Visual Basic .NET 2005 or .NET 2008. MsgBox(My.Computer.FileSystem.FileExists("c:\theFile.txt")) MsgBox(My.Computer.FileSystem.DirectoryExists("c:\"))
Check if File/Folder/Directory Exists in VB.NET
Sunday, June 17th, 2007Check if a File or Directory/Folder Exists using VB.NET Check File... MessageBox.Show(IO.File.Exists("d:\someFileName.txt")) Check Folder / Directory MessageBox.Show(IO.Directory.Exists("c:\myFolder"))
