ASP GetBaseName ਮੱਥਦਾ

ਵਿਆਖਿਆ ਅਤੇ ਵਰਤੋਂ

GetBaseName ਮੱਥਦਾ ਮੱਥਦਾ ਵਾਪਸ ਦਿੰਦਾ ਹੈ ਕਿ ਵਿਸ਼ੇਸ਼ ਪਾਥ ਵਿੱਚ ਕਿਸੇ ਫਾਈਲ ਜਾਂ ਫੋਲਡਰ ਦਾ ਮੂਲ ਨਾਮ ਹੈ。

ਗਤੀਸ਼ੀਲਤਾਵਾਂ:

FileSystemObject.GetBaseName(path)
parameter ਪਰਾਮੀਟਰ ਦੀ ਵਰਣਨ
path ਲੋੜੀਦਾ ਹੈ। ਇਸ ਦਾ ਮੂਲ ਨਾਮ ਵਾਪਸ ਦਿੱਤੇ ਗਏ ਫਾਈਲ ਜਾਂ ਫੋਲਡਰ ਦੇ ਪਾਥ ਦੀ ਜ਼ਰੂਰਤ ਹੈ。

ਇੱਕ ਉਦਾਹਰਣ

<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
Response.Write(fs.GetBaseName("c:\winnt\cursors\3dgarro.cur"))
set fs=nothing
%>

ਆਉਟਪੁਟ:

3dgarro