FileName
The FileName field displays the name of the current file, using the Windows long filename; default setting does not include a file extension. Adding the \p switch adds the file system path (network location, drive, and folder), as well as the file extension.
Syntax
{ FILENAME [Switches]}
Switches
FILENAME supports capitalization formatting switches (see the section earlier in this chapter, "Capitalization Formatting Switches").
Examples
The following field displays the filename, including path and file extension:
{ FILENAME \p }
→ For more information about working with document properties, see Chapter 30, "Sharing Files and Managing Word".
Get Special Edition Using Microsoft® Word 2000 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.