توصية الدورة

طريقة Move في ASP

التعريف والاستخدام

يُنقل باستخدام Move Method الملف أو المجلد المحدد من موقع إلى آخر.

النحو:
FileObject.Move(destination)
FolderObject.Move(destination) الم 参数
وصف destination

مطلوب. الهدف من تحريك ملف/مجلد. لا يُسمح باستخدام الأشياء المعطوفة.

مثال

<%
مثال على File Object
تعيين fs=Server.CreateObject("Scripting.FileSystemObject")
dim fs,f
Set f=fs.GetFile("d:\test.txt")
f.Move("d:\test\test.txt")
تعيين fs=nothing
%>

مثال على Folder Object

<%
dim fs,fo
تعيين fs=Server.CreateObject("Scripting.FileSystemObject")
تعيين fo=fs.GetFolder("d:\test")
fo.Move("d:\asp\test")
تعيين fo=nothing
تعيين fs=nothing
%>