@echo off setlocal rem Batch file for launching MADX from KEDIT macro mad.kex, John Jowett, CERN 28/4/2003. rem Essentially the same as mad8.bat except that the pause at the end is removed rem so that KEDIT can go straight ahead and load the output. rem Go to folder containing input file. where the MAD input file lives ... we'll execute rem from there pushd %~dp1 @echo off set fname=%1 rem set up a (local) environment variable with dict file location rem Check that worked by uncommenting next two lines: rem set rem more < %dict% rem run MADX, syntax here seems to be critical C:\mad\madX\madX.exe<%fname% endlocal popd @echo on