Method ya GetFileName katika ASP
Uhusiano na Matumizi
Method ya GetFileName inaruhusu stringi ya jina la dosya au folda kwenye mazingira wa kiingilio.
Inasabuhuni:
FileSystemObject.GetFileName(path)
Parametro | Maelezo |
---|---|
path | Injili. Mwongozo wa nje kueleza mazingira wa dosya au folda. |
Mfano
Mfano 1
<% dim fs,p set fs=Server.CreateObject("Scripting.FileSystemObject") p=fs.getfilename("c:\test\test.htm") response.write(p) set fs=nothing %>
Muonekano:
test.htm
Mfano 2
<% dim fs,p set fs=Server.CreateObject("Scripting.FileSystemObject") p=fs.getfilename("c:\test\") response.write(p) set fs=nothing %>
Muonekano:
test