home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PROG_PAS
/
XLIB_TP5.ZIP
/
UTIL
/
MAKE_MF.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-12-13
|
1KB
|
49 lines
uses dos,X_FileIO;
procedure Help;
begin;
WriteLn('Make_MF <MasterFileName> <filemask1> [<filemast2> ...]');
WriteLn;
WriteLn('With this program, you can "move" many files to a big one,');
WriteLn('but your program (if they use X_FileIO) read all data !,');
WriteLn('as if still exists the many, little files.');
Halt(1);
end;
type big=Array[0..2000] of LongInt;
var i:Byte;
S:SearchRec;
tt:^big;
begin;
new(tt);
WriteLn('Make_MF Make a MasterFile');
WriteLn;
if paramcount<2 then Help;
Init_File_List; (* Init the FileList *)
for i:=2 to paramcount do (* Add all filename from parameters *)
begin;
findfirst(paramstr(i),anyfile,S);
while DosError=0 do
begin;
if Add_File_List(S.Name) then WriteLn('Adding ',S.Name:12,' .');
findnext(S);
end;
end;
if Get_File_item_count<1 then (* Error - filemask was wrong *)
begin;
WriteLn('None files found ! - Nothing to do.');
WriteLn;
Halt(2);
end;
Make_MasterFile(paramstr(1));
Kill_File_List; (* nonsens before ending *)
WriteLn('Ok.')
end.