导航:  CFileSys Class >

GetFolderName

上一页返回章节概述下一页

描述

 

Returns a string containing the name of the folder for a specified path, i.e. the path minus the file name.

 

语法

 

FUNCTION GetFolderName ( _

   BYREF cwsPathSpec AS CWSTR _

) AS CWSTR

 

参数

 

cwsPathSpec

CWSTR.路径.

 

引用文件

 

CFileSys.inc

 

示例

 

#INCLUDE ONCE "Afx/CFileSys.inc"

 

DIM pFileSys AS CFileSys

DIM cwsName AS CWSTR = pFileSys.GetFolderName("C:\MyFolder\Test.txt")