วิธีASP MoveFile
❮ อ้างอิงวัตถุ FileSystemObject ที่สมบูรณ์
วิธี MoveFile จะย้ายไฟล์ตั้งแต่หนึ่งไฟล์ขึ้นไปจากที่หนึ่งไปยังอีกที่หนึ่ง
ไวยากรณ์
FileSystemObject.MoveFile source,destination
Parameter | Description |
---|---|
source | Required. The path to the file/files to be moved. Can contain wildcard characters in the last component. |
destination | Required. Where to move the file/files. Cannot contain wildcard characters |
ตัวอย่าง
<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
fs.MoveFile "c:\web\*.gif","c:\images\"
set fs=nothing
%>
❮ อ้างอิงวัตถุ FileSystemObject ที่สมบูรณ์