Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP MoveFolder Method

ASP MoveFolder Method


FileSystemObject Reference Complete FileSystemObject object reference manual


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

Syntax

FileSystemObject.MoveFolder source,destination

Parameters Description
source Required. The path to the folder(s) to move. Wildcards can be included in the last component.
destination Required. The destination for the moved folder(s). Wildcards cannot be included.

Example

<%

dim fs

set fs=Server.CreateObject("Scripting.FileSystemObject")

fs.MoveFolder "c:\test\web","c:\windows"

set fs=nothing

%>


FileSystemObject Reference Complete FileSystemObject object reference manual