Source Insight 获取当前文件名

来源:互联网 发布:七天网络阅卷公司 编辑:程序博客网 时间:2024/06/06 00:52


macro GetFileName(pathName)
{
nlength = strlen(pathName)
i = nlength - 1
name = ""
while (i + 1)
{
   ch = pathName[i]
   if ("\\" == "@ch@")
    break
   i = i - 1
}
i = i + 1
while (i < nlength)
{
   name = cat(name, pathName[i])
   i = i + 1
}

return name
}

0 0
原创粉丝点击