CopyFolder
ASP CopyFolder metodi
❮ FileSystemObject obyektining to‘liq ma’lumotnomasi
CopyFolder metodi bir yoki bir nechta papkani bir joydan boshqa joyga nusxalaydi.
Sintaksis
FileSystemObject.CopyFolder source,destination[,overwrite]
| Parametr | Tavsif |
|---|---|
| source | Majburiy. Nusxalanadigan papka yoki papkalar (wildcard belgilardan foydalanish mumkin) |
| destination | Majburiy. Papka yoki papkalar qayerga nusxalanishi (wildcard belgilardan foydalanib bo‘lmaydi) |
| overwrite | Ixtiyoriy. Mavjud papkani qayta yozish (overwrite) mumkinligini bildiruvchi Boolean qiymat. True mavjud papkalarni qayta yozishga ruxsat beradi, False esa mavjud papkalar qayta yozilishining oldini oladi. Standart qiymati: True |
Misollar
<%
'copy all the folders in c:\mydocuments\web
'to the folder c:\webpages
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
fs.CopyFolder "c:\mydocuments\web\*","c:\webpages\"
set fs=nothing
%>
<%
'copy only the folder test from c:\mydocuments\web
'to the folder c:\webpages
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
fs.CopyFolder "c:\mydocuments\web\test","c:\webpages\"
set fs=nothing
%>
❮ FileSystemObject obyektining to‘liq ma’lumotnomasi
W3Schools Pathfinder
Yutuqlaringizni kuzating – bu bepul!
