Extracting only file name from file path
Hey, do you know if there is any Win32 API for extracting various parts from a string containing the file name with the whole path, or do I have to figure out some algorithm myself?
Or, if you have a code snippet at hand to do this work, could you paste it? ;)
some win32 api path functions
GetFileTitle-returns string system would display for filename
GetFullPathName-given a filename returns full path for file.
GetLogicalDriveStrings-returns strings for all valid drives
GetLongPathName-converts shortpath to longpath
GetShortPathName-converts longpath to short path