Difference between revisions of "AutoStart"

From SpybotWiki
Jump to: navigation, search
(Description)
(Usage: added var types)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
This command searches the Autostart group inside the start menu for links. Also searches desktop and start menu root.
+
{{SbiCmdInfo
 +
|SYNTAX = AutoStart
 +
|PENAME = SpybotSD.exe
 +
|PEVERSION = 1.3 or later
 +
|GROUP = Files
 +
|MINUPDATE = n/a
 +
|ADVFILEPARAMS = yes (third)
 +
|ADVREGPARAMS = no
 +
|ADVBUILDPARAMS = yes (third)
 +
|ADVSPECIALPARAMS = no
 +
}}This command searches the Autostart group inside the start menu and on the desktop for links.
  
 
==Usage==
 
==Usage==
  AutoStart:[link name or name of file linked to],[directory],<advanced file parameters>
+
  AutoStart:<linkname/targetname(string)>,<directory(string)>[,advanced file parameters>]
  
 
===Examples===
 
===Examples===
Line 13: Line 23:
 
An easy way to identify links in the ''Startup'' Start menu group either by name of their link, or by the name of the file they link to.
 
An easy way to identify links in the ''Startup'' Start menu group either by name of their link, or by the name of the file they link to.
  
# The first parameter identifies either the name of the linked file, or a substring of the file the link to be detected should point to. It's highly recommended to use include as much of the filename as you have, as filenames are often quite ambigious. {{PathTemplates}}
+
# The first parameter identifies either the name of the linked file, or a substring of the file the link to be detected should point to. It's highly recommended to use include as much of the filename as you have, as filenames are often quite ambigious. If you try to identify by link name, you need to specify [[Advanced file parameters|advanced file parameters]], otherwise you won't get a match! [[AlgoPrefix|Algo-Prefixes]] are supported only after 1.5.2 and then only for the filename that was linked to. {{AlgoPrefix}} {{PathTemplates}}
# The second parameter was intended to be used as a directoy flag similar to the ones in [[AutoRunByFilename]] and [[AutoRunByValue]].
+
# The second parameter was intended to be used as a directoy flag similar to the ones in [[AutoRunByFilename]] and [[AutoRunByValue]]. It is not in use though!
 +
# Use [[Advanced file parameters|advanced file parameters]], either for the link or file that is linked to, to avoid ambiguous situations.
  
As an alternative, you might want to look into using [[File]] along with the proper [[Path templates|path template]], e.g. ''<$STARTUP>'' or ''<$COMMONSTARTUP>''.
+
As an alternative, you might want to look into using [[File]] along with the proper [[Path templates|path template]], e.g. ''<$STARTUP>'' or ''<$COMMONSTARTUP>'' (this command checks ''<$PROGRAMS>'', ''<$STARTUP>'', ''<$STARTMENU>'' and ''<$DESKTOP>'', as well as their ''COMMON'' variants).
 +
 
 +
===Scan Results===
 +
* Either the link that was identified through the first parameter; '''or'''
 +
* The file a link pointed to if it was identified through the first parameter.
  
 
==See also==
 
==See also==
 
* [[Advanced file parameters]]
 
* [[Advanced file parameters]]
 +
* [[AlgoPrefix]]
 
* [[Path templates]]
 
* [[Path templates]]
  
Line 33: Line 49:
  
 
[[Category:SBI Commands]]
 
[[Category:SBI Commands]]
[[Category:SBI Commands (current)]]
+
[[Category:SBI Commands supporting AlgoPrefix]]

Latest revision as of 15:53, 22 February 2008

AutoStart
Group Files
Main Application Version 1.3 or later
Required Update n/a
File Parameters yes (third)
Registry Parameters no
Build Parameters yes (third)
Special Parameters no

This command searches the Autostart group inside the start menu and on the desktop for links.

Usage

AutoStart:<linkname/targetname(string)>,<directory(string)>[,advanced file parameters>]

Examples

AutoStart:"Spyware.lnk","","filesize>=10240"
AutoStart:"Spyware.exe","","filesize>=10240"

The first example would identify a link Spyware.lnk, the second one any link that would point to a file named Spyware.exe; in both cases, the file linked to has to be larger than 10 KB in size (which is a quite silly advanced file parameter and only used for demonstration here).

Description

An easy way to identify links in the Startup Start menu group either by name of their link, or by the name of the file they link to.

  1. The first parameter identifies either the name of the linked file, or a substring of the file the link to be detected should point to. It's highly recommended to use include as much of the filename as you have, as filenames are often quite ambigious. If you try to identify by link name, you need to specify advanced file parameters, otherwise you won't get a match! Algo-Prefixes are supported only after 1.5.2 and then only for the filename that was linked to. AP PT
  2. The second parameter was intended to be used as a directoy flag similar to the ones in AutoRunByFilename and AutoRunByValue. It is not in use though!
  3. Use advanced file parameters, either for the link or file that is linked to, to avoid ambiguous situations.

As an alternative, you might want to look into using File along with the proper path template, e.g. <$STARTUP> or <$COMMONSTARTUP> (this command checks <$PROGRAMS>, <$STARTUP>, <$STARTMENU> and <$DESKTOP>, as well as their COMMON variants).

Scan Results

  • Either the link that was identified through the first parameter; or
  • The file a link pointed to if it was identified through the first parameter.

See also

Similar commands