VBScript » Folder » Move

Version: 3.0

Syntax:
object.Move destination

Moves the specified folder from one location to another.

It is recommended that you use the FolderExists method of the FileSystemObject object to determine if a folder with the same name already exists in the destination location. If it does, and you attempt the Move, you'll receive an error.

Examples

Code:
<%
dim filesys, demofolder
set filesys = CreateObject ("Scripting.FileSystemObject")
set demofolder = filesys.GetFolder("c:\projects\")
demofolder.Move ("c:\work\")
%>

See Also: