home *** CD-ROM | disk | FTP | other *** search
- program CopyImgExport;
-
- {
- This script copies Visual Map images after export to specified by CopyToPath directory
- }
-
- const CopyToPath='C:\MapExport\';
- var e,v1,v2:integer;
- lst:TNVList;
- Begin
- CreateDirectory(CopyToPath);
- lst:=TNVList.Create;
- repeat
- e:=WaitEvent(v1,v2);
- if(e=NMNP_ACTION)and(v2<>0)then
- begin
- lst.GETLIST(v2,0);
- if lst.id=v2 then
- begin
- CopyFile(nv_directory+'Export\'+lst.lname+'.gif',CopyToPath+lst.lname+'.gif',false);
- end;
- end;
- until e=0;
- lst.Free;
- End.
-