@page @{ ViewData["title"] = "SEL - Functions"; ViewData["page-support"] = "Functions \\ SEL"; }
SEL

Has many functions to handle selected file system objects.

@* has the following syntax:*@

sel(quote=false, separator=' ')

Returns all selected items with double quotation mark and custom separator.

sel
sel(true)
sel(true, "\n")


sel.path
Returns the path of the selected item..


sel.path.title
Returns the name without the extension of the selected item.


sel.path.length
Returns the number of characters in the path of the selected item.


sel.path.title
Returns the path title of the selected item..


sel.path.quote
Returns the path of the selected item. with double quotation mark.


sel.short
Returns the short path of the selected item.


sel.short.length
Returns the number of characters in the short path of the selected item.


sel.raw
Returns the path of the selected item in raw format.


sel.raw.length
Returns the number of characters in the raw path of the selected item.


sel.root
Returns the root directory from the path of the selected items.


sel.name
Returns the name and extension of the selected item.


sel.name.length
Returns the number of characters in the name of the selected item.


sel.title
Returns the name without extension of the selected item.


sel.title.length
Returns the number of characters in the name without extension of the selected item.


sel.parent
Returns the directory path for the selected item.


sel.parent.quote
Returns the directory path for the selected item with quotation mark.


sel.parent.raw
Returns the directory path for the selected item in raw format.


sel.parent.name
Returns the name of the parent of the selected item.


sel.parent.length
Returns the number of characters in the parent path of the selected item.


sel.count
Returns count selected items.


sel.back
Returns whether the selection is in the background.


sel.curdir or sel.workdir
Returns the path of current working directory.


sel.file
Returns the path for the selected item. If it is a file


sel.file.name
Returns the number of characters in the name of the selected item. If it is a file.


sel.file.name.length
Returns the name for the selected item. If it is a file.


sel.file.ext
Returns the extension for the selected item. If it is a file.


sel.file.title
Returns the name without an extension for the selected item. If it is a file.


sel.file.quote
Returns the path for the selected item with quotation mark. If it is a file.


sel.directory
Returns the path for the selected item. If it is a directory.


sel.directory.name
Returns the name for the selected item. If it is a directory.


sel.directory.length
Returns the number of characters in the path of the selected item. If it is a directory.


sel.directory.quote
Returns the path for the selected item with quotation mark. If it is a directory.


sel.get(index=0)
Returns the path of the selected item by referring to the index number.


sel.raw(index=0)
Returns the raw path of the selected item by referring to the index number.


sel.length(index=0)
Returns the number of characters in the path of the selected item by referring to the index number.


sel.readonly(index=0)
Returns whether the selected item by referring to the index number is read-only.


sel.hidden(index=0)
Returns whether the selected item by referring to the index number is hidden.

@*

sel.type
Returns the type for the selected item with the following values:

type.directory
type.file
type.namespace
type.drive
type.fixed
type.usb
type.dvd
type.vhd
type.removable
type.taskbar
type.desktop
type.computer
type.recyclebin
type.remote
type.back
type.back.namespace
type.back.directory
type.back.drive


sel.mode
Returns the selection mode with the following values:

mode.none
mode.single
mode.multiple
mode.multisingle
mode.multiunique

*@ @*

sel.tofile(quote=true, sep="\n", path='@@sys.temp\shell.txt')
Returns the path of the file containing the selections with optional parameters quotation mark, separator, and file path..
default path value %temp%\shell-selections.txt

sel.tofile(true)
sel.tofile(true, "\r\n")
sel.tofile(false, "\n", 'C:\sell\selections.txt')


sel.paths
sel.paths.count
sel.paths.title
sel.paths.quote

sel.directories(dirs)
sel.directories.count
sel.directories.title
sel.directories.quote

sel.files
sel.files.count
sel.files.ext
sel.files.title
sel.files.name
sel.files.quote

sel.types
sel.types.count

sel.shorts
sel.shorts.count

sel.titles
sel.titles.count

sel.names
sel.names.count

sel.exts
sel.exts.count

sel.drivers
sel.drivers.count

sel.namespaces
sel.namespaces.count
*@ @*If the sys function is passed without an argument, then the interactive help utility starts up on the console.*@