({{, (RefLink[AbsoluteFileName, paclet:ref/AbsoluteFileName])["name"] 
gives the full absolute version of the name for a file in your filesystem.}})

OpenersNotesSection(Spacer1)Details

(RefLink[AbsoluteFileName, paclet:ref/AbsoluteFileName]) goes to your filesystem to check that the file name it returns corresponds to a file that actually exists.

(RefLink[AbsoluteFileName, paclet:ref/AbsoluteFileName])["name"] interprets name relative to your current directory.

(RefLink[AbsoluteFileName, paclet:ref/AbsoluteFileName]) handles directory designations such as . and ...

(RefLink[AbsoluteFileName, paclet:ref/AbsoluteFileName]) yields an absolute file name, with standard pathname separators appropriate for your operating system.

(RefLink[AbsoluteFileName, paclet:ref/AbsoluteFileName])[(RefLink[File, paclet:ref/File])["name"]] is also supported.

OpenersPrimaryExamplesSection(Spacer1)Examples  (4)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

Find the full path to the current directory:

SetDirectory[$InstallationDirectory];

AbsoluteFileName["."]

Reset the current directory to the previous directory:

ResetDirectory[];

Find the full path to a directory:

SetDirectory[$UserBaseDirectory];

AbsoluteFileName["Applications"]

ResetDirectory[];

If the file cannot be found, (RefLink[$Failed, paclet:ref/$Failed]) is returned:

AbsoluteFileName["foo.gif"]

OpenersExampleSection1(Spacer1)Scope  (1)

Find the full path of the (RefLink[File, paclet:ref/File]) object:

SetDirectory[$InstallationDirectory];

AbsoluteFileName[File[".."]]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[FindFile, paclet:ref/FindFile])  ▪  (RefLink[ExpandFileName, paclet:ref/ExpandFileName])  ▪  (RefLink[FileExistsQ, paclet:ref/FileExistsQ])  ▪  (RefLink[FileNames, paclet:ref/FileNames])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Operations on File Names, paclet:guide/OperationsOnFileNames])}, {▪(RefLinkPlain[File Operations, paclet:guide/FileOperations])}})}})