Difference between revisions of "IniValueRemove"

From SpybotWiki
Jump to: navigation, search
(New page: ==Usage== IniValueRemove:[description],[filename],[section],[value],[data],[data to be removed],<advanced build parameters> ===Examples=== ===Description=== ==See also== ===Simil...)
 
Line 1: Line 1:
 
  
 
==Usage==
 
==Usage==
Line 5: Line 4:
  
 
===Examples===
 
===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===
 
===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 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 third parameter describes the section inside the INI file; [[AlgoPrefix|Algo-Prefixes]] are allowed here.
 +
# The fourth parameter describes the name of the value; [[AlgoPrefix|Algo-Prefixes]] are allowed here.
 +
# The fifth parameter identifies the data the value has to match; [[AlgoPrefix|Algo-Prefixes]] are allowed here.
 +
# The sixth parameter finally defines the text that is to be removed.
 +
# 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.
  
 
==See also==
 
==See also==
 +
* [[Advanced build parameters]]
 +
* [[AlgoPrefix]]
 +
* [[Description templates]]
 +
* [[Path templates]]
 
   
 
   
 
===Similar commands===
 
===Similar commands===
 +
* [[IniValueChange]]
 +
* [[IniValueDelete]]
 +
 +
==Similar advanced file parameters==
 +
* [[ini]]
 +
* [[inilinkbranch]]
  
 
[[Category:SBI Commands]]
 
[[Category:SBI Commands]]
 
[[Category:SBI Commands (current)]]
 
[[Category:SBI Commands (current)]]
[[Category:ToDo]]
 

Revision as of 09:09, 17 February 2008

Usage

IniValueRemove:[description],[filename],[section],[value],[data],[data to be removed],<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.

  1. The first parameter is a standard description; either plaintext, or better a description template, since that allows localization when displaying results to the user.
  2. The second parameter describes the file; you may use path template here.
  3. The third parameter describes the section inside the INI file; Algo-Prefixes are allowed here.
  4. The fourth parameter describes the name of the value; Algo-Prefixes are allowed here.
  5. The fifth parameter identifies the data the value has to match; Algo-Prefixes are allowed here.
  6. The sixth parameter finally defines the text that is to be removed.
  7. 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.

See also

Similar commands

Similar advanced file parameters