desktop-file-name

desktop-file-name is a compiled Lisp function in `desktop.el'.

(desktop-file-name FILENAME DIRNAME)

Convert FILENAME to format specified in `desktop-file-name-format'.
DIRNAME must be the directory in which the desktop file will be saved.