list internal command
The list command takes the following
form:
list OBJECTNAME [OBJECTTYPE]
The command displays a list view
containing objects that match OBJECTNAME.
If OBJECTTYPE is specified, only matching
objects of that type are searched. OBJECTTYPE may be one of service, process,
remoteshare, localshare, network,
printer or file.
Even if no matching objects are found, an empty view is still
created and will be populated if and when matching objects of that
type are created.
If OBJECTTYPE is not specified, the
command searches for object types in the following order:
- Windows services
- Processes
- Remote file shares
- Local file shares
- Network connections
- Printers
- Files and directories
All matching objects of a specific type are displayed. However,
no attempt is made at matching against further object types. If
objects of the wrong type are being displayed, use the OBJECTTYPE parameter to restrict matching to a
specific object type.
In all cases, the object space is searched using multiple match
criteria.
- For services, OBJECTNAME is matched
against the internal and display service names.
- For processes, OBJECTNAME is matched
against the process id, path, name (with and without file name
extension), or the title of toplevel windows. The results of the
first match type that succeeds are displayed.
- For remote shares, matching is tried using an exact match, only
the share name, only the system name and finally with trailing
wildcards. The results of the first match type that succeeds are
displayed.
- For local shares, matching is tried with the exact share name
and then with trailing wildcards.
- Network connections are matched against local or remote port
numbers, IP addresses, host names and finally service names.
- Matching against printers is similar to matching against remote
shares as described above.
- Files and directories are matched using wildcards. If no match
is found, then the list of directories in the PATH environment variable is searched.