@Echo off
REM Launch or attach to existing copy of Data Explorer already running
@Launcher DEAppStart

REM Loop through all the data files in a specified directory calling a macro

for %%f in (%1\*.dat) do @DEMacro "%%f" CmdLineMacros.GeneratePeakTable

REM Kill any copy of Data Explorer that may be running
@DEAppQuit