Difference between revisions of "IniValueRemove"
(fixed usage) |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | {{SbiCmdInfo | ||
+ | |SYNTAX = IniValueRemove | ||
+ | |PENAME = SpybotSD.exe | ||
+ | |PEVERSION = 1.5 or later | ||
+ | |GROUP = Special File Formats | ||
+ | |MINUPDATE = n/a | ||
+ | |ADVFILEPARAMS = no | ||
+ | |ADVREGPARAMS = no | ||
+ | |ADVBUILDPARAMS = yes (seventh) | ||
+ | |ADVSPECIALPARAMS = no | ||
+ | }}Allows to remove data from ''.ini'' file entries. | ||
==Usage== | ==Usage== | ||
− | IniValueRemove: | + | IniValueRemove:<description>,<filename>,<section>,<value>,<data>,<data to be removed>[,advanced build parameters] |
===Examples=== | ===Examples=== | ||
Line 12: | Line 23: | ||
# The first parameter is a standard description; either plaintext, or better a [[Description templates|description template]], since that allows localization when displaying results to the user. | # The first parameter is a standard description; either plaintext, or better a [[Description templates|description template]], since that allows localization when displaying results to the user. | ||
− | # The second parameter describes the file; you may use [[Path templates|path template]] here. | + | # The second parameter describes the file; you may use [[Path templates|path template]] here. {{PathTemplates}} |
− | # The third parameter describes the section inside the INI file; [[AlgoPrefix|Algo-Prefixes]] are allowed here. | + | # The third parameter describes the section inside the INI file; [[AlgoPrefix|Algo-Prefixes]] are allowed here. {{AlgoPrefix}} {{PathTemplates}} |
− | # The fourth parameter describes the name of the value; [[AlgoPrefix|Algo-Prefixes]] are allowed here. | + | # The fourth parameter describes the name of the value; [[AlgoPrefix|Algo-Prefixes]] are allowed here. {{AlgoPrefix}} {{PathTemplates}} |
− | # The fifth parameter identifies the data the value has to match | + | # The fifth parameter identifies the data the value has to match. {{PathTemplates}} |
− | # The sixth parameter finally defines the text that is to be removed. | + | # The sixth parameter finally defines the text that is to be removed. {{PathTemplates}} |
# Optionally, you may use [[Advanced build parameters|advanced build parameters]] in the seventh parameter. | # Optionally, you may use [[Advanced build parameters|advanced build parameters]] in the seventh parameter. | ||
You might want to take advantage of the [[AlgoPrefix|Algo-Prefix]] ''<$REGMATCHn>'' result of previous ''<regexpr>'' checks here. | You might want to take advantage of the [[AlgoPrefix|Algo-Prefix]] ''<$REGMATCHn>'' result of previous ''<regexpr>'' checks here. | ||
+ | |||
+ | ===Scan Results=== | ||
+ | * INI file entry. | ||
==See also== | ==See also== | ||
Line 36: | Line 50: | ||
[[Category:SBI Commands]] | [[Category:SBI Commands]] | ||
− |
Latest revision as of 16:21, 22 February 2008
IniValueRemove | |
Group | Special File Formats |
Main Application | Version 1.5 or later |
Required Update | n/a |
File Parameters | no |
Registry Parameters | no |
Build Parameters | yes (seventh) |
Special Parameters | no |
Allows to remove data from .ini file entries.
Contents
Usage
IniValueRemove:<description>,<filename>,<section>,<value>,,[,advanced build parameters]
Examples
IniValueRemove:"<$REG_AUTORUN>","<$WINDIR>\win.ini","windows","load","*","<$WINDIR>\badmalware.exe"
This example removes just the reference to e.g. C:\Windows\badmalware.exe from the data, keeping other load entries intact.
Description
This command removes data from INI file content values; useful mostly in places where other data in the same value needs to be kept, thus the value cannot be removed completely.
- The first parameter is a standard description; either plaintext, or better a description template, since that allows localization when displaying results to the user.
- The second parameter describes the file; you may use path template here. PT
- The third parameter describes the section inside the INI file; Algo-Prefixes are allowed here. AP PT
- The fourth parameter describes the name of the value; Algo-Prefixes are allowed here. AP PT
- The fifth parameter identifies the data the value has to match. PT
- The sixth parameter finally defines the text that is to be removed. PT
- Optionally, you may use advanced build parameters in the seventh parameter.
You might want to take advantage of the Algo-Prefix <$REGMATCHn> result of previous <regexpr> checks here.
Scan Results
- INI file entry.