Command Line

 


Use keywords to find the content you
are looking for within the WinOne site.

Command STRREP

Function:

Replace all occurrences of a string within the specified text with another string . The resulting string is stored in an environment variable called STRREP.
Syntax:
STRREP "old" "new" [text]
oldA string that specifies the string to find.
newA string that specifies the replacement string.
textA sequence of characters.
Note:
  • When the string (ie. parameter old) does not occur within the text then the environment variable STRREP will contain a copy of parameter text.
  • Also see command STRFIND, STRRFIND and Batch Programs.

Copyright © 1995-2012 Better Computers Australia Pty Ltd, All Rights Reserved
WinOne is an Australian registered trademark
Visit our HTPC Store.