Field codes: FileName field

{ FILENAME [Switches] }

Inserts the file name of the document, as recorded on the General tab in the Properties dialog box (File menu).

Switches

\p

Includes the file location, or path, with the file name.

Examples

To print information such as "Document: C:\MSOFFICE\WINWORD\REPORTS\Sales for QTR4.doc" on each page of a document, insert the following text and field in a header or footer:

Document: { FILENAME \p }