ປະເພດ ASP
ການອະທິບາຍແລະການນໍາໃຊ້
ປະສົມປະສານວິທີການສະແດງຫຼືດຳເນີນບັນຊີບັນນາທິການຫຼືສານບັນຊີ.
ວິທີການ:
FileObject.Name[=newname] FolderObject.Name[=newname]
ປະເພດ | ການອະທິບາຍ |
---|---|
newname | ຄວາມອະນຸຍາດຫຼາຍຢ່າງ. ກໍານົດຊື່ບັນຊີບັນນາທິການຫຼືສານບັນຊີ. |
ອານຸມະສານ
<% dim fs,f set fs=Server.CreateObject("Scripting.FileSystemObject") set f=fs.GetFile("d:\test.txt") Response.Write("The file's name: ") Response.Write(f.Name) set f=nothing set fs=nothing %>
ຄຳອອກສຽງ:
ຊື່ເອກະສານ: test.txt