Added in 1.9.0

$nofile(filename)

Returns the path in filename without the actual filename.

Example

; Print the path 'c:\windows\notepad.exe' without the filename.
//echo -ag $nofile(c:\windows\notepad.exe)