FileFullName

Fleshes out a file name with drive and path information.

Syntax:

FileFullName(partial filename)

Parameters:

(s) partial filename possibly incomplete filename - missing drive and/or path.

Returns:

(s) a complete file name.

 

Use this function to return the complete file name from a partial file name. Drive and path information will be added to the file name to create a full file name. If both drive and path are missing, the current working directory drive and path will be used. If only the drive is missing, the current working directory drive is used. If a drive is specified with a relative path, then the function uses the calling process's current working directory when both specify the same drive.  If they have different drives the function checks for any path information for the passed-in drive set by a commend shell prompt. If neither the current working directory or a command shell prompt contains a matching drive letter, the function returns the relative path unaltered.

Example:


DirChange("C:\TEMP")
a="Test.abc"
b=FileFullname(a)
Message(a,b)
; b will equal C:\TEMP\TEST.ABC
See Also:

AskFileName, ExeTypeInfo, FileMapName, FileLocate, FileBaseName