Cicode Programming Reference > Cicode Function Categories > File Functions Introduction > FileSplitPath

FileSplitPath

Splits a file path into individual string components. You enter the full path string as sPath. The individual components of the path name are returned in the arguments sDrive, sDir, sFile, and sExt.

Syntax

FileSplitPath(sPath, sDrive, sDir, sFile, sExt)

sPath:

The full path string.

sDrive:

The disk drive.

sDir:

The directory string.

sFile:

The file name (without the extension).

sExt:

The file extension.

Return Value

0 (zero) if successful, otherwise an error is returned.

Related Functions

FileSeek, FileFind, FileMakePath

Example

See FileFind

See Also

File Functions