directory class : MoveTo(string) method

Description

Moves the directory to the specified path.

Syntax

directoryInstance.MoveTo(string destination)

Arguments

ClassNameDescription
stringdestinationPath of the destination.

Return value

None

Sample code

1:

directory dir = new directory("c:\somewhere...");

2:

dir.MoveTo("c:\destinationpath...");

Notes

It's a wrapper of the System.IO.DirectoryInfo.MoveTo(String) method.

Links for reference

Copyright © Cooker All rights reserved.