static void Main(string[] args) { System.IO.FileSystemInfo fileSystemPath = GetFileSystemPath(); if (!fileSystemPath.Exists) { throw new System.IO.FileNotFoundException(fileSystemPath.FullName); } Console.ReadLine(); } private static FileSystemInfo GetFileSystemPath() { FileInfo fileInfo = new FileInfo(@"x:\Dev\TempLibrary.mdb"); return fileInfo; }