Index: trunk/webapps/mergelogs.bat
===================================================================
--- trunk/webapps/mergelogs.bat	(revision 638)
+++ 	(revision )
@@ -1,10 +1,0 @@
-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  1. Extract CAD DETAIL lines from incident_script.xml
-set PYTHONPATH=webapps\unifiedlogger.zip  python -m extract_caddetails
-set dir="webapps\dynamicdata"
-REM 2. Merge the unified log with cad details and evaluation ratings
-type %dir%\unifiedlog.csv %dir%\caddetails.csv %dir%\evalratings.csv w:\web2py\samplelogfile.txt | sort > %dir%\unifiedlog_final.csv
-
Index: trunk/bin/postsession_logmerge.bat
===================================================================
--- trunk/bin/postsession_logmerge.bat	(revision 671)
+++ trunk/bin/postsession_logmerge.bat	(revision 671)
@@ -0,0 +1,25 @@
+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
+set 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\Mozilla Firefox\firefox.exe"  localhost:8080/sessionlogdisplay.html  &
+
