37567Re: wish return DOS (short) form of NAME
- Mar 3, 2003From the Win32 API (exists from win95 and NT3.1 onwards)
HANDLE FindFirstFile(LPCTSTR pattern, LPWIN32_FIND_DATA pData)
BOOL FindClose(HANDLE h)
HANDLE h = FindFirstFile(pchExactPathName, &data);
const char* pchEightPointThreeName = data.cAlternateFileName; //
FIXME - take a copy
Bram Moolenaar wrote:
>Xiangjiang Ma wrote:
>>For vim for win32, can we have an option to return DOS filename?
>>How about %:P, %:P:H, etc (captital letter)?
>>Reason: for those poor Windows users, :set ssl<CR> helps a lot.
>>But space in the filename is a constant trouble. Recently, after
>>using gvim.exe 6.1.358, I found my following favorite map is broken:
>>nme <silent>PopUp.Open_IE_&View :norm :sil! !start
>>C:/Progra~1/intern~1/iexplore -nohome "%:p"<CR>
>Is there always a short name? E.g., on NTFS file systems.
- << Previous post in topic Next post in topic >>