Hi,
I think the scripts below can help you in this case:
Import multiple files:
//please make sure the exact path of your files
string fns, path$ = system.path.program$ + "\samples\curve fitting\";
//you can change the extension of file to txt, csv and so on
findfiles fname:=fns$ ext:="test*.dat";
impasc fname:=fns$
options.ImpMode:=4 //start new sheets
Copy columns:
//loop over all the worksheets and copy column#4 of each worksheet to a new worksheet named summary
doc -e LB {colcopy irng:=Col(4) orng:=summary!Col(ii)};
wks.nCols = wks.nCols-1; //delete the last column
Delete rows:
wks.deleteRows(1,5);
If you want to know more details of the scripts, you can select Help: Programming: Labtalk from Origin menu.
Hope the information helps.
Regards
Yuki
Originlab Technical Service Team