1.
<%
2.
FileSystemObject.CopyFolder(Source,Destination,Overwrite)
3.
%>
01.
Option
Explicit %>
02.
<html>
03.
<head>
04.
<title>ThaiCreate.Com ASP FileSystemObject
Object
</title>
05.
</head>
06.
<body>
07.
08.
Dim
objFSO
09.
Set
objFSO = Server.CreateObject(
"Scripting.FileSystemObject"
)
10.
objFSO.CopyFolder Server.MapPath(
"MyFiles"
),Server.MapPath(
"MyNewFiles"
),
True
11.
Response.write (
"Folder Copyed"
12.
objFSO =
Nothing
13.
14.
</body>
15.
</html>
ช่วยกันสนับสนุนรักษาเว็บไซต์ความรู้แห่งนี้ไว้ด้วยการสนับสนุน Source Code 2.0 ของทีมงานไทยครีเอท