ASP Move Method
❮ Folder Object ရည်ညွှန်းချက်ကို အပြီးသတ်ပါ။
Move method သည် သတ်မှတ်ထားသော ဖိုင် သို့မဟုတ် ဖိုင်တွဲကို တစ်နေရာမှ အခြားတစ်နေရာသို့ ရွှေ့သည်။
အထားအသို
FileObject.Move(destination)
FolderObject.Move(destination)
Parameter | Description |
---|---|
destination | Required. Where to move the file or folder. Wildcard characters are not allowed |
File object အတွက် ဥပမာ
<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
Set f=fs.GetFile("c:\test.txt")
f.Move("c:\test\test.txt")
set f=nothing
set fs=nothing
%>
Folder object အတွက် ဥပမာ
<%
dim fs,fo
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:\test")
fo.Move("c:\asp\test")
set fo=nothing
set fs=nothing
%>
❮ Folder Object ရည်ညွှန်းချက်ကို အပြီးသတ်ပါ။