:һĿ¼

ʽ:DirectoryParent(d)

d:ű洢Ŀ¼ļ·

˵:ִϷdһĿ¼,dΪĿ¼,򷵻䱾,d"\",򷵻ؿ

:

d=DirectoryParent("C:\temp\data.dat")//سõ½
d = "c:\temp"