Command Prompt for Windows

getfilepath, _wgetfilepath, _tgetfilepath

char *getfilepath(int index);
wchar_t *_wgetfilepath(int index);
TCHAR *_tgetfilepath(int index);

Retrieve a file path from the File Table.

Parameter Description
index Specifies which file path to retrieve from the File Table. Entries in the File Table start from an index of 0.


On success it returns the address of a NULL terminated string containing the path name. On error it returns a NULL.


Use the fillfile() to fill the File Table before using getfilepath().

Path names are stored in a static buffer and is over-written each time this function is called.

The path returned may not contain a fully qualified path name.

See Also

fillfile, getfile, getfilename