Click to See Complete Forum and Search --> : how can i retrieval the whole path in a computer(like explore)


April 26th, 1999, 09:25 AM
as subject

Exile
August 5th, 1999, 02:32 AM
Do you mean like the MFC (?) function

CFile::GetFilePath();

??

(extract from MSDN Library follows: (c) MS)
<<

virtual CString GetFilePath( ) const;



Return Value

The full path of the specified file.

Remarks

Call this member function to retrieve the full path of a specified file. For example, when you call GetFilePath to generate a message to the user about the file c:\windows\write\myfile.wri, the file path, c:\windows\write\myfile.wri, is returned.

To return just the name of the file (myfile.wri), call GetFileName. To return the title of the file (myfile), call GetFileTitle.
>>

// Mikael Johansson