Copying Folders using File System Object

posted by Scudyen date: Thursday, May 22, 2008 category: ASP
  Featured Story | Printable View | Email It | Comments | Write Comment

 

If you want to copy some foldes to another folder, first create a File System Object. CopyFolder method will help you to copy folder ot another folder.

<html><body>

<%

Dim objFSO
Set objFSO = CreateObject("Scripting.FileSystemObject")
FSO.CopyFolder "c:\\Inetpub\\wwwroot\\mysite", "c:\\Inetpub\\wwwroot\\backup"

response.write "Folder copied."

%>

</body></html>


Custom Search



Gazatem Technologies Active News Manager


page counter

Listed with 411asp.net
Listed with 4aspin.com
PHP, ASP, .NET, JSP Resources, Reviews