Features
Ask DevGuru
ASP Resources
Find the Bug
Knowledge Base
Links
Tips of the Week
Tutorials
Products
dgCalendar
dgCharge New!
dgChart New!
dgFileUpload
dgReport New!
dgSort
dgTree
Site
Authoring
Coming Soon
DevGuru Resume
Link to Us
Merchandise
Sponsorships
Testimonials
What's New
Technologies
ADO 2.6
ASP
CSS2
HTML
JavaScript
Jet SQL
Transact-SQL Syntax
VBScript
WML
WMLScript
WSH
XML DOM
All Methods
Folder Object
METHOD: Folder.Copy
Implemented in version 2.0
object.
Copy
destination[, overwrite]
This method makes a copy of the selected folder and saves it to the specified destination. The
overwrite
parameter is a Boolean value -
True
allows existing folders with the same name as
destination
to be overwritten while
False
(the default) does not.
Note that after copying a folder to a new location the
Folder
object still relates to the
original
folder.
Code:
<%
dim filesys, demofolder
set filesys = CreateObject ("Scripting.FileSystemObject")
set demofolder = filesys.GetFolder("c:\projects\")
demofolder.Copy("c:\work\")
%>
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information