NAnt SDK Documentation - v0.92 |

# PathScanner.Scan Method (String)

Scans all directories in the given environment variable for files.

[Visual Basic]
Overloads Public Function Scan( _
ByVal name As String _
) As StringCollection
[C#]
public StringCollection Scan(
string name
);

#### Parameters

name
  The environment variable of which the directories should be scanned.

#### Return Value

List of matching files found in the directory of the given environment variable.

#### See Also

PathScanner Class | NAnt.Core Namespace | PathScanner.Scan Overload List