精华区 [关闭][返回]

当前位置:网易精华区>>讨论区精华>>编程开发>>● VFP>>〖外部引用〗>>Re:如何得到一个长文件名对应的短文件名?

主题:Re:如何得到一个长文件名对应的短文件名?
发信人: foxzz()
整理人: hunter__fox(2002-03-16 21:48:54), 站内信件
请参考:
例子:
m_shortname=shortnam("c:\My Documents\语音查询\电话语音查询系统.doc")


*!*******************************
proc shortnam
para p_filename

DECLARE Long GetShortPathNameA IN Win32API  AS GetShortPathNameA ;
   String longfilename, String @shortname, Long bufferlength

local m_shortname,m_returnnum
m_shortname=space(256)
m_returnnum=GetShortPathNameA(p_filename,@m_shortname,256)

return m_shortname





----
天行健,君子以自强不息

[关闭][返回]