~~Title: Properties ~~
The **Properties** internal command can be used to:
* Display the system //Properties// dialog for files and folders
* Display the **[[:basic_concepts:folder_options|Folder Options]]** dialog for the current folder
* Display the FTP [[:ftp:site_properties|Site Properties]] dialog for the currently connected FTP site
* Display a drop-down menu of your [[:basic_concepts:folder_options:folder_formats|favorite folder formats]]
* Assign a [[:file_operations:labels|label]] to selected files and folders
* Set a selected image file as the system wallpaper image
**Command Arguments:**
$$ Argument
$$ Type
$$ Possible values
$$ Description
$$ (#)//(no argument)//
$$ -
$$ -
$$ Display the system //Properties// dialog for selected files and folders.
``Properties``
$$ ADDLABEL
$$ /O
$$ //(no value)//
$$ In conjunction with the **SETLABEL** argument, this lets you add one or more labels without clearing any existing ones.
``Properties SETLABEL=Green ADDLABEL``
Can be combined with **SETLABELTOGGLE** to toggle a single label.
``Properties SETLABEL=Bold ADDLABEL SETLABELTOGGLE``
$$
$$
$$ **shift\\
ctrl\\
alt**
$$ If a keyword is specified, the labels will only be added if the specified key is held down when the function is run - otherwise the **ADDLABEL** argument will be ignored and they will replace existing labels as normal.
``Properties SETLABEL red ADDLABEL=ctrl``
$$ FILE
$$
$$ ////
$$ Specifies the filename rather than using selected files. Wildcards are supported in the last path component. This is the default argument for the **Properties** command so you do not need to specify the **FILE** keyword. If the filename includes spaces make sure you enclose it in quotes.
``Properties "C:\Windows\System32\notepad.exe"``
$$ FOLDERFORMAT
$$ /S
$$ //(no value)//
$$ Display the **Folder Format** dialog for the current folder.
``Properties FOLDERFORMAT``
$$ FTPSITE
$$ /S
$$ //(no value)//
$$ Display the FTP [[:ftp:site_properties|Site Properties]] dialog for the currently connected FTP site. If you are not currently viewing an FTP directory this command has no effect.
``Properties FTPSITE``
$$ HEADING
$$ /O
$$ //(no value)//
$$ When used with commands which generate a list of items (see [[:customize:creating_your_own_buttons:editing_the_toolbar:dynamic_buttons|dynamic buttons]]), the **HEADING** argument adds a small heading at the start of the list. The heading will be hidden when the list is empty. Headings only happen for commands which potentially generate multiple items at the same level as the button itself.
When **HEADING** is used by itself, without specifying a text value, the main button's label text is used for the heading.
``Properties SETLABEL HEADING``
$$
$$
$$ ////
$$ You can specify the heading text if you want it to be different to the button's label.
``Properties SETLABEL HEADING="Labels"``
$$ LABELCATEGORY
$$ /K
$$ ////
$$ When used on a command that generates a list of labels (e.g. `Properties SETLABEL` or `Properties SETLABEL !menu`) this argument lets you filter the generated list by category. It accepts one or more comma-separated wildcard strings which let you match the name of categories to include.
The specified categories will also be used when resetting labels using the `Properties SETLABEL !reset` command - if **LABELCATEGORY** is used as well, only labels in the specified categories will be cleared. This is used in the default **Properties** drop-down menu to provide a command that clears status icons without affecting other labels.
You can match uncategorized labels using the pattern **~*** (which means "not anything").
Special handling exists for the two predefined categories, //Status// and //Colors//; these can be referenced using the English names prefixed with **raw:** and will work in any language.
``Properties SETLABEL !menu LABELCATEGORY raw:~(Status)``
$$ LISTER
$$ /S
$$ //(no value)//
$$ Displays the system //Properties// dialog for the folder currently displayed in the source file display.
``Properties LISTER``
$$ NOFROMFOCUS
$$ /S
$$ //(no value)//
$$ The default behaviour for the **Properties** command is to operate on either the source file display, or the Folder Tree, depending on which one has the input focus. This lets you use the same command to access the //Properties// dialog for folders in the tree as well as files and folders in the file display. Specify this argument to force the command to always operate on the source file display and ignore the folder tree.
``Properties NOFROMFOCUS``
$$ POSITION
$$ /K
$$ ////
$$ Specify the position for the Properties dialog in screen coordinates. If no positioned specified, the dialog will open in a default position.
``Properties POSITION=0,0``
$$
$$
$$ **rel**
$$ Indicates the coordinates are relative to the Lister launching the Properties function.
``Properties POSITION=32,32,rel``
$$
$$
$$ **center**
$$ Center the properties dialog over the Lister that launched it.
``Properties POSITION=center``
$$ SETLABEL
$$ /O
$$ //(no value)//
$$ Displays a generated list of your configured [[:file_operations:labels|labels]] (acts as a [[:customize:creating_your_own_buttons:editing_the_toolbar:dynamic_buttons|dynamic button]]). Selecting a label from this list applies it to all selected files and folders.
This command supports [[:customize:creating_your_own_buttons:embedded_functions|embedded functions ]]when it's used to generate dynamic buttons.
``Properties SETLABEL``
$$
$$
$$ //