ASP Copy usuli
ta'rif va foydalanish
Copy usuli ma'lumot yoki jildni bir o'ringanlikdan ikkinchi o'ringanligga ko'chiradi.
grammatika:
FileObject.Copy(destination[,overwrite]) FolderObject.Copy(destination[,overwrite])
parametr | tasvirlash |
---|---|
destination | ajbora. Ma'lumot yoki jildni nima uchun noma'lumot. Wildcard ishlatilmaydi. |
overwrite | tanlab. Qabul qilinadigan. Aniqa ma'lumot yoki jildni muqobil yerdan o'chirmoqchi yoki yo'qmi belgilaydi. True deb belgilanganda ma'lumot yoki jild o'chiriladi, false deb belgilanganda ma'lumot yoki jild o'chirmaydi. Andoza true. |
ga farin obi girmek uchun misal
<% dim fs,f set fs=Server.CreateObject("Scripting.FileSystemObject") set f=fs.GetFile("c:\test.txt") f.Copy("d:\new_file.txt",false) set f=nothing set fs=nothing %>
ga farin girmek uchun misal
<% dim fs,fo set fs=Server.CreateObject("Scripting.FileSystemObject") set fo=fs.GetFolder("c:\test") fo.Copy("d:\new_file",false) set fo=nothing set fs=nothing %>