ZennoLab Assemblies Documentation
DirectoryDeleteFileByMask Method
See Also  Example Send Feedback
ZennoLab.Macros Assembly > ZennoLab.Macros Namespace > FileSystem Class : DirectoryDeleteFileByMask Method
pathToDirectory

Type: System.String

Path to the directory.

pattern

Type: System.String

Mask for remove files .

Glossary Item Box

Removes the file by mask

Syntax

C# 
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.
C#Copy Code
string pathToDirectory = {pathToDirectory};
string pattern = {maskToRemoveFiles};
FileSystem.DirectoryDeleteFileByMask(pathToDirectory, pattern);
PHPCopy Code
$pathToDirectory = {pathToDirectory};
$pattern = {maskToRemoveFiles};
FileSystem::DirectoryDeleteFileByMask($pathToDirectory, $pattern);

Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.