REM Merge log files and sort by timestamp REM Invoke from 'trunk' folder REM TODO: Add error handling - missing files, not executed from 'trunk', ... REM Change to trunk folder cd .. REM 1. Runs a python program named "extract_caddetails" REM to extract CAD DETAIL lines from incident_script.xml REM and creates an output file "caddetails.csv" set PYTHONPATH=webapps\unifiedlogger.zip python -m extract_caddetails REM 2. Define a variable for the directory containing the data files dir="webapps\dynamicdata" REM 3. Merge the unified log with cad details and evaluation ratings REM then sort them by timestamp (reverse chronological). REM Final result placed in "sessionlog.csv" type %dir%\unifiedlog.csv %dir%\caddetails.csv %dir%\evalratings.csv w:\web2py\samplelogfile.txt | sort > %dir%\sessionlog.csv REM 4. Next, launch the webserver and browse to localhost:8080/sessionlogdisplay.html REM to show a nicely formatted version of the results. "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" localhost:8080/sessionlogdisplay.html &