Description |
The method returns true if PathString path exists. If it does not exist, or is an invalid path specification, then false is returned.
|
| Notes | Static methods are not methods of an object - they are simply class functions or procedures available at any time.
|
|
Microsoft MSDN Links |
System.IO
System.IO.Directory
|
|
|
A simple example |
program Project1;
{$APPTYPE CONSOLE}
uses
System.IO;
begin
if System.IO.Directory.Exists('C:\Program Files')
then Console.WriteLine('Path exists')
else Console.WriteLine('Path does not exist');
Console.Readline;
end.
| Show full unit code | Path exists
|
|
|
|