When a command-line argument contains a file name, special syntax can be used to get various information about the file.

The following expand to various information about the file passed as %1:

Untitled Database

The same syntax applies to single-letter variables created by FOR command, such as %%i.

Links: