ASP MoveFolder Method

Definition and Usage

The MoveFolder method moves one or more folders from one location to another.

Syntax:

FileSystemObject.MoveFolder source,destination
Parameter Description
source Required. The path pointing to the folder that needs to be moved. Wildcards can be included in the last component.
destination Required. The destination of the moving folder. Cannot contain wildcards.

Example

<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
fs.MoveFolder "c:\test\web\","c:\windows\"
set fs=nothing
%>