GetFileName

ASP GetFileName metodi


❮ FileSystemObject obyektining to‘liq ma’lumotnomasi

GetFileName metodi ko‘rsatilgan yo‘ldagi oxirgi komponentning fayl yoki papka nomini o‘z ichiga olgan string qaytaradi.

Sintaksis

FileSystemObject.GetFileName(path)

Parametr Tavsif
path Majburiy. Muayyan fayl yoki papkaga yo‘l

Misollar

Fayl nomini olish:

<% dim fs,p set fs=Server.CreateObject("Scripting.FileSystemObject") p=fs.getfilename("c:\test\test.htm") response.write(p) set fs=nothing %> Output: test.htm

Papka nomini olish:

<% dim fs,p set fs=Server.CreateObject("Scripting.FileSystemObject") p=fs.getfilename("c:\test\") response.write(p) set fs=nothing %> Output: test

❮ FileSystemObject obyektining to‘liq ma’lumotnomasi

W3Schools Pathfinder

Yutuqlaringizni kuzating – bu bepul!