วิธีการ GetSpecialFolder ของ ASP
คำนิยามและวิธีใช้
วิธีการเรียกใช้ GetSpecialFolder มีกลุ่มเฉพาะของ Windows ในรูปแบบหน่วยกลาง
รูปแบบการใช้งาน
FileSystemObject.GetSpecialFolder(foldername)
ตัวแปร | คำอธิบาย |
---|---|
foldername | จำเป็น ต้องการโฟลเดอร์ที่จะกลับ
|
ตัวอย่าง
<% dim fs,p set fs=Server.CreateObject("Scripting.FileSystemObject") set p=fs.GetSpecialFolder(1) Response.Write(p) set p=nothing set fs=nothing %>
ออกทาง
C:\WINNT\system32