#Script to run the 2DVD rematch #Make sure correct CORRFACT.dat and REMATCH.set are up to date import os, glob rematch_dir='C:\\Program Files\\2D-video-distrometer\\REMATCH\\' #place ab (only!) files to be rematched here raw_dir='C:\\2dvddata\\rematch\\raw\\' #new hyd files will be placed here hyd_dir='C:\\2dvddata\\rematch\\hyd\\' for files in glob.glob(raw_dir+'*ab'): #print 'processing '+files command='cmd /c \"cd /d '+rematch_dir+' && REMATCH '+files+' \"' print command os.system(command)