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

Type: System.String

Path to the file.

Glossary Item Box

Removes the file

Syntax

C# 
public static void DirectoryDeleteFile( 
   string pathToFile
)

Parameters

pathToFile

Type: System.String

Path to the file.

Example

The following example shows call the DirectoryDeleteFile method.
C#Copy Code
string pathToFile = {pathToFile};
FileSystem.DirectoryDeleteFile(pathToFile);
PHPCopy Code
$pathToFile = {pathToFile};
FileSystem::DirectoryDeleteFile($pathToFile);

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.