program tppremover;
{$APPTYPE CONSOLE}
uses
SysUtils, StrUtils,
Classes;
var str: TStringList;
i, j: integer;
st, st1: string;
begin
if (ParamCount > 0) then
begin
str := TStringList.Create;
str.LoadFromFile(ParamStr (1));
for i:=0 to str.Count-1 do
begin
st := str.Strings[i];
j := pos (' tppabs', st);
while j>0 do
begin
st1 := leftstr (st, j-1);
delete (st, 1, j+11);
while (st[1] <> '"') do
delete (st, 1, 1);
delete (st, 1, 1);
st := st1 + st;
j := pos (' tppabs', st);
end;
str.Strings[i] := st;
end;
str.SaveToFile(ParamStr (1));
end;
{ TODO -oUser -cConsole Main : Insert code here }
end.