ASP GetParentFolderName ਮੱਥਦ
ਵਿਆਖਿਆ ਅਤੇ ਵਰਤੋਂ
GetParentFolderName ਮੱਥਦ ਨੂੰ ਨਿਰਦਿਸ਼ਟ ਪਾਥ ਵਿੱਚ ਆਖਰੀ ਅੰਗ ਦੇ ਮਾਤਾ ਫੋਲਡਰ ਦਾ ਨਾਮ ਵਾਪਸ ਦੇਣਾ ਹੈ。
ਸਫ਼ਟਵੇਅਰ:
FileSystemObject.GetParentFolderName(path)
ਪੈਰਾਮੀਟਰ | ਵਰਣਨ |
---|---|
path | ਲੋੜੀਦਾ ਹੈ। ਉਸ ਦੇ ਮਾਤਾ ਫੋਲਡਰ ਦੇ ਫਾਈਲ ਜਾਂ ਫੋਲਡਰ ਦੇ ਪਾਥ ਨੂੰ ਵਾਪਸ ਦੇਣਾ ਹੈ。 |
ਉਦਾਹਰਣ
<% dim fs,p set fs=Server.CreateObject("Scripting.FileSystemObject") p=fs.GetParentFolderName("c:\winnt\cursors\3dgarro.cur") Response.Write(p) set fs=nothing %>
输出:
c:\winnt\cursors