home *** CD-ROM | disk | FTP | other *** search
- {DivFix is a utility for reindexing partial DivX AVI movies
- Copyright (C) 2000-2002 Csaba Budai
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA}
-
- program DivFix;
-
- uses
- Forms, SysUtils,
- DivX in 'DivX.pas' {Form1},
- About in 'About.pas' {Form2};
-
- Var SearchRec : TSearchRec;
- {$R *.RES}
-
- begin
- Application.Initialize;
- Application.CreateForm(TForm1, Form1);
- Application.CreateForm(TForm2, Form2);
- If ParamCount>0 Then
- Begin
- If ParamCount>1 Then
- Begin
- If (ParamStr(1)='-r') Or (ParamStr(1)='-R') Then
- Begin
- If FindFirst(ParamStr(2),faAnyFile,SearchRec)=0 Then
- Repeat
- With TForm1.Create(nil) Do
- Try
- MaskEdit1.Text:=ExtractFilePath(ParamStr(2))+SearchRec.Name;
- Show;
- Refresh;
- Button2Click(nil);
- Finally
- Free;
- End;
- Until FindNext(SearchRec)<>0;
- FindClose(SearchRec);
- End;
- End
- Else
- Begin
- If FindFirst(ParamStr(1),faAnyFile,SearchRec)=0 Then
- Begin
- Repeat
- With TForm1.Create(nil) Do
- Try
- MaskEdit1.Text:=ExtractFilePath(ParamStr(1))+SearchRec.Name;
- Show;
- Refresh;
- Button1Click(nil);
- Finally
- Free;
- End;
- Until FindNext(SearchRec)<>0;
- FindClose(SearchRec);
- End;
- End;
- End
- Else Application.Run;
- end.
-