Here is a batch script for doing steps 1+2 for FIF data on our machine: attachment:spm5_meg_batch_preproc.m