home *** CD-ROM | disk | FTP | other *** search
- uses
- dos, eco_node
-
- ;
-
-
- var
- nodelist: nodelistobj;
- nl,
- st, st1 : string;
- pvt : text;
-
-
- function __existfil(pathname: string): boolean;
- var fileinfo : searchrec;
- begin
- findfirst(pathname, anyfile, fileinfo);
- __existfil := (doserror = 0)
- end;
-
-
- begin
- writeln('PvtList -- create a EFTP-usable ASCII list of your favorite nodes.');
- writeln('Repeat entering nodenumbers until ready. All will be added.');
- writeln('Edit the nodelist specification:');
- nl := 'D:\S\Z\NODELIST\NODELIST.057';
- writeln(nl);
- {readln(nl);}
- with nodelist do begin
- if not init(nl, paramstr(1) = '/c') then halt;
- assign(pvt, 'EFTP.PVT');
- if __existfil('EFTP.PVT') then append(pvt) else rewrite(pvt);
- repeat
- readln(st);
- if st <> '' then begin
- st1 := getnode(st);
- if st1 = '' then writeln('Not found!') else begin
- writeln(st1); writeln(pvt, st1);
- end;
- end;
- until st = 'exit';
- done(false); { keep index }
- close(pvt);
- end;
- end.
-