Files
Shell/docs/Functions/Sel.cshtml
T
2021-12-09 10:30:55 +02:00

286 lines
6.1 KiB
Plaintext

@page
@{
ViewData["title"] = "SEL - Functions";
ViewData["page-support"] = "Functions \\ SEL";
}
<h5>SEL</h5>
<p>Has many functions to handle selected file system objects.</p>
@* has the following syntax:*@
<br>
<p>
<h5>sel(quote=<code>false</code>, separator=<code>' '</code>)</h5>
<p>Returns all selected items with double quotation mark and custom separator.</p>
<pre><code>sel<br>sel(true)<br>sel(true, "\n")</code></pre>
</p>
<br>
<p>
<h5>sel.path</h5>
Returns the path of the selected item..
</p>
<br>
<p>
<h5>sel.path.title</h5>
Returns the name without the extension of the selected item.
</p>
<br>
<p>
<h5>sel.path.length</h5>
Returns the number of characters in the path of the selected item.
</p>
<br>
<p>
<h5>sel.path.title</h5>
Returns the path title of the selected item..
</p>
<br>
<p>
<h5>sel.path.quote</h5>
Returns the path of the selected item. with double quotation mark.
</p>
<br>
<p>
<h5>sel.short</h5>
Returns the short path of the selected item.
</p>
<br>
<p>
<h5>sel.short.length</h5>
Returns the number of characters in the short path of the selected item.
</p>
<br>
<p>
<h5>sel.raw</h5>
Returns the path of the selected item in raw format.
</p>
<br>
<p>
<h5>sel.raw.length</h5>
Returns the number of characters in the raw path of the selected item.
</p>
<br>
<p>
<h5>sel.root</h5>
Returns the root directory from the path of the selected items.
</p>
<br>
<p>
<h5>sel.name</h5>
Returns the name and extension of the selected item.
</p>
<br>
<p>
<h5>sel.name.length</h5>
Returns the number of characters in the name of the selected item.
</p>
<br>
<p>
<h5>sel.title</h5>
Returns the name without extension of the selected item.
</p>
<br>
<p>
<h5>sel.title.length</h5>
Returns the number of characters in the name without extension of the selected item.
</p>
<br>
<p>
<h5>sel.parent</h5>
Returns the directory path for the selected item.
</p>
<br>
<p>
<h5>sel.parent.quote</h5>
Returns the directory path for the selected item with quotation mark.
</p>
<br>
<p>
<h5>sel.parent.raw</h5>
Returns the directory path for the selected item in raw format.
</p>
<br>
<p>
<h5>sel.parent.name</h5>
Returns the name of the parent of the selected item.
</p>
<br>
<p>
<h5>sel.parent.length</h5>
Returns the number of characters in the parent path of the selected item.
</p>
<br>
<p>
<h5>sel.count</h5>
Returns count selected items.
</p>
<br>
<p>
<h5>sel.back</h5>
Returns whether the selection is in the background.
</p>
<br>
<p>
<h5>sel.curdir or sel.workdir</h5>
Returns the path of current working directory.
</p>
<br>
<p>
<h5>sel.file</h5>
Returns the path for the selected item. If it is a file
</p>
<br>
<p>
<h5>sel.file.name</h5>
Returns the number of characters in the name of the selected item. If it is a file.
</p>
<br>
<p>
<h5>sel.file.name.length</h5>
Returns the name for the selected item. If it is a file.
</p>
<br>
<p>
<h5>sel.file.ext</h5>
Returns the extension for the selected item. If it is a file.
</p>
<br>
<p>
<h5>sel.file.title</h5>
Returns the name without an extension for the selected item. If it is a file.
</p>
<br>
<p>
<h5>sel.file.quote</h5>
Returns the path for the selected item with quotation mark. If it is a file.
</p>
<br>
<p>
<h5>sel.directory</h5>
Returns the path for the selected item. If it is a directory.
</p>
<br>
<p>
<h5>sel.directory.name</h5>
Returns the name for the selected item. If it is a directory.
</p>
<br>
<p>
<h5>sel.directory.length</h5>
Returns the number of characters in the path of the selected item. If it is a directory.
</p>
<br>
<p>
<h5>sel.directory.quote</h5>
Returns the path for the selected item with quotation mark. If it is a directory.
</p>
<br>
<p>
<h5>sel.get(index=<code>0</code>)</h5>
Returns the path of the selected item by referring to the index number.
</p>
<br>
<p>
<h5>sel.raw(index=<code>0</code>)</h5>
Returns the raw path of the selected item by referring to the index number.
</p>
<br>
<p>
<h5>sel.length(index=<code>0</code>)</h5>
Returns the number of characters in the path of the selected item by referring to the index number.
</p>
<br>
<p>
<h5>sel.readonly(index=<code>0</code>)</h5>
Returns whether the selected item by referring to the index number is read-only.
</p>
<br>
<p>
<h5>sel.hidden(index=<code>0</code>)</h5>
Returns whether the selected item by referring to the index number is hidden.
</p>@*
<br>
<p>
<h5>sel.type</h5>
Returns the type for the selected item with the following values:<br><br>
<pre><code>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</code></pre>
</p>
<br>
<p>
<h5>sel.mode</h5>
Returns the selection mode with the following values:<br><br>
<pre><code>mode.none
mode.single
mode.multiple
mode.multisingle
mode.multiunique</code></pre>
</p>*@
@*
<br>
<p>
<h5>sel.tofile(quote=<code>true</code>, sep=<code>"\n"</code>, path=<code>'@@sys.temp\shell.txt'</code>)</h5>
Returns the path of the file containing the selections with optional parameters quotation mark, separator, and file path..<br>default path value <code>%temp%\shell-selections.txt</code><br><br>
<pre><code>sel.tofile(true)
sel.tofile(true, "\r\n")
sel.tofile(false, "\n", 'C:\sell\selections.txt')</code></pre>
</p>
</p>
<br>
<pre>
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
</pre>
*@
@*If the sys function is passed without an argument, then the interactive help utility starts up on the console.*@