ZennoLab Assemblies Documentation
DirectoryDeleteFileByMask Method
Example 

Type: System.String

Path to the directory.

Type: System.String

Mask for remove files .

Removes the file by mask
Syntax
public static void DirectoryDeleteFileByMask( 
   string pathToDirectory,
   string pattern
)

Parameters

pathToDirectory

Type: System.String

Path to the directory.

pattern

Type: System.String

Mask for remove files .

Example
The following example shows call the DirectoryDeleteFileByMask method.
string pathToDirectory = {pathToDirectory};
string pattern = {maskToRemoveFiles};
FileSystem.DirectoryDeleteFileByMask(pathToDirectory, pattern);
$pathToDirectory = {pathToDirectory};
$pattern = {maskToRemoveFiles};
FileSystem::DirectoryDeleteFileByMask($pathToDirectory, $pattern);
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

FileSystem Class
FileSystem Members

Send Feedback