Home Notices Documents Classes Download Others Rice
Classes  >  directory  >  MoveTo(string)
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 © Rice All rights reserved.