Download WOOP V2.25 Useful for : Searching & Replacing text in textfiles
USAGE : WOOP {Path}TextFileToOpen /C=CurrentTextString /N=NewTextString
StandAloneWooParameters :
ASK: PWD: & Question, Answer will become CTS/NTS, use PWD: for password prompt
DEF: Same as ASK: but with default Answer : DEF:Question#Default Answer
GET: Will read CTS &/or NTS from INI files
FILE: Load specified file content into CTS &/or NTS
PARAM: Same as FILE: but returns only trimed first line of file
[WIPE] To delete a text string (only for NTS)
[WIPELINE] To delete a line containing CTS (only for NTS)
[KEEPLINE] To Keep only lines containing CTS (only for NTS)
[ADDLINE] To add NTS on the last line [ADDLINE:X] To add NTS on line number X
CombinableWooParameters :
[REC:{Path}Filename] To record your parameter in a file
[DAY] or [DAY:{Lang}] French:F,English:E,German:G,Wolof:W Long:Write Capitals
[DATE] or [DATE:{DateFormat}] day:dd month:mm me ME mf MF year: yy or yyyy
[TIME] or [TIME:{TimeFormat}] hours: hh minuts: mm seconds: ss
[BIP] Plays a BIP sound
[PAUSE] Stops WOOP until a key is pressed
[PAUSE:x] Stops WOOP for x seconds {x=0-9(0=10)}
[COLOR:aa,bb] Set Text and Background color. (Set aa & bb in range [00-15])
[RNDx] Random length x Number x=0-9(0=10) options: a=alpha A=ALPHA N=Numeric
[$xxx] Where xxx is the caracter's ASCII code
[INDEX] Reads and increment the number from singled line file : INDEX.W8P
" String " To keep start & end spaces
Command line Global Parameters :
' Same as DOS command ECHO but using WOOP colors :)
SHOW: Same as dos command TYPE but using WOOP colors :)
TYPE: Same as WOOP command SHOW but with pauses each 24 lines
GET:{Path}IniFile,ParamString[,Section][,ParamStringEnd][SHELL:{Path}File.Bat]
if SHELL File is specified, returned GET string will become File.bat parameter
BATCH: Followed by Text File name containing command lines
; Defines a comment line that won't be displayed (Batch Mode only)
[NOCASE] To replace strings without checking the case (a or A both wooped)
+ [BIP] & [PAUSE] & [PAUSE:x]
Woop Error Levels (For use in Batch Files) :
ERROR = 1 ... No Error, Woop Wooped ... :o)
ERROR = 5 ... Syntax Error or Wrong Parameter ...
ERROR = 53 ... A Specified File Doesn't Exist ...
ERROR = 55 ... File Already Opened ...
ERROR = 68 ... Can't Create Specified File ...
ERROR = 250 ... Woop String not found, nothing Wooped ... :)
ERROR = 255 ... Error Somewhere ... :)
Syntax Exemples (PTFTO = {Path}TextFileToOpen) :
WOOP PTFTO /C=CTS /N=AnyString & WooParameter[REC:{Drive}:\{Path}{FileName}]
WOOP PTFTO /C=CTS /N=[DAY:F] The:[DATE:dd/mm/yyyy] at:[TIME:hhhmmmsss]
WOOP PTFTO /C=CTS /N=ASK:YourQuestion
WOOP PTFTO /C=CTS /N=GET:{Path}TxtFile,ParamString[,Section][,ParamStringEnd]
Exemples:
WOOP stuff.txt /C=whatever /N=[RNDaA6][RNDaAN8][RNDa4][BIP]
WOOP E:\chocolat.ini /C=Parameter01 /N=DEF:Type Parameter 01 :#sugar
WOOP MyBatch.bat /C=UserName /N=ASK:Enter your Name[REC:C:\spy.txt]
WOOP R:\NET\SYSTEM.INI /C=[MACHINENAME] /N=TOTO[RND4][DAY][REC:C:\MacName.txt]
WOOP G:\script.cfg /C=Parameter01 /N=FILE:E:\Param01.txt
WOOP Z:\*.htm /C=[$013][$010] /N=[WIPE] (Erase all CRLF from htm files in Z:)
WOOP BATCH:commands.cfg
commands.cfg content :
;comment : type your command lines
'Setting Stuffs
F:\hummhumm\mind.bat /C=this is fantastic /N=" This sucks !!! "
C:\stuff.ini /C=zeebeedee /N=yabadoo
'bob's section :
D:\zoup.bat /C=username /N=GET:c:\zoup.ini,name=,[Users]
Woop is SwapWare (Now GPL3), this means that if u use Woop for more than the 2 weeks
test period u have to send me (Fredy, Woop Author) whatever u think is valuable
to swap Woop for. It can be a nice postcard, a pair of shoes (blue if possible),
an ice cream (hummm may be not after all), a book (only if with big images !),
an elevator, a shrubbery or anything else u want, it's ur choice :)
Please, if sending money, don't pay me more than one million $ for Woop because
my pockets are far too small for such an amount of money.
E-mails are now considered a valid swap stuff also ...
If u use Woop then please take it as seriously as I do and send me something.
If u don't u r violating international software license laws and stuff and the
police will send u in jail for many many years and I'm sure u don't want that :)