strSplitPath(
const path, // full file path
[var& ext, // extension
var& dir, // directory
var& drive]) // drive
Splits a path name into its 4 parts drive, directory,
filename and extension.
Returns the filename.
Example:
var file, ext, dir, drive;
file = strSplitPath('F:\\IBK\\DOC\\CSL.INF',ext,dir,drive);
// drive = 'F:'
// dir = '\IBK\DOC\'
// file = 'CSL'
// ext = '.INF'
|