ܣȡָļ

ʽDirectoryName(f) 

f:Ϊַļ· 

˵:·ڷؿ,ڷضӦļ

:

f = "c:\data\";
n = DirectoryName(f)//سõ½
n = "data"