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

Type: System.String

Path to the directory.

recursive

Type: System.Boolean

true if removingrecursively; otherwise, false.

onlyFromStartupPath

Type: System.Boolean

true if not removethe directorydoes notbelong tothe startup directory; otherwise, false.

Glossary Item Box

Remove target directory

Syntax

C# 
public static void DirectoryDeleteDirectory( 
   string pathToDirectory,
   bool recursive,
   bool onlyFromStartupPath
)

Parameters

pathToDirectory

Type: System.String

Path to the directory.

recursive

Type: System.Boolean

true if removingrecursively; otherwise, false.

onlyFromStartupPath

Type: System.Boolean

true if not removethe directorydoes notbelong tothe startup directory; otherwise, false.

Example

The following example shows call the DirectoryDeleteDirectory method.
C#Copy Code
string pathToDirectory = {pathToDirectory};
bool recursive = true;
bool startupPath = false;
FileSystem.DirectoryDeleteDirectory(pathToDirectory, recursive, startupPath);
PHPCopy Code
$pathToDirectory = {pathToDirectory};
$recursive = true;
$startupPath = false;
FileSystem::DirectoryDeleteDirectory($pathToDirectory, $recursive, $startupPath);

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.