Difference between revisions of "AutoStart"
(added info box) |
(→Usage: added var types) |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
|SYNTAX = AutoStart | |SYNTAX = AutoStart | ||
|PENAME = SpybotSD.exe | |PENAME = SpybotSD.exe | ||
− | |PEVERSION = 1.3 | + | |PEVERSION = 1.3 or later |
|GROUP = Files | |GROUP = Files | ||
|MINUPDATE = n/a | |MINUPDATE = n/a | ||
Line 12: | Line 12: | ||
==Usage== | ==Usage== | ||
− | AutoStart:< | + | AutoStart:<linkname/targetname(string)>,<directory(string)>[,advanced file parameters>] |
===Examples=== | ===Examples=== |
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.
- 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
- 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, 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.