file class : MoveTo(string) method
Description
Moves a file to a new location.
Syntax
fileInstance.MoveTo(string path)
Arguments
Class | Name | Description |
string | path | Path of new location. |
Return value
None
Sample code
1: | file f = new file("c:\somewhere..."); |
2: | f.MoveTo("c:\newlocation..."); |
Notes
It's a wrapper of the System.IO.FileInfo.MoveTo(String) method.
It can be used not only to move a place but also to specify a new file name.