procedure TForm6.FileListBox1Change(Sender: TObject);
var
   k: integer;
   Path2: String;
   Name2: String;
begin
    for k := 2 to FileListBox1.Items.Count  do
      begin
      //设置文件路径,文件名字
        Path2 := FileListBox1.Directory + '\' + FileListBox1.Items.Strings[k - 1];
        Name2 := FileListBox1.Items.Strings[k - 1];
        with ADOQuery1 do
        begin
             Close;
             SQL.Clear;
             SQl.Add('insert into scan(num, load, name) values(:k,:Path2,:Nmae2)');
             Execsql;
        end;
      end;
end;