in the command line or batch file, you need to modify the Default Configuration settings.
for example: if you want your result looks like this:
this csv file includes: timestamp, elapsed time, label, response code, bytes, SampleCount, ErrorCount, your command should like this:
Start C:\apps\apache-jmeter-2.13\bin\jmeter.bat -n -t
C:\testPath.jmx -l
C:\test-output\Report_20151211_A.csv -Jjmeter.save.saveservice.output_format=csv
-Jjmeter.save.saveservice.print_field_names=true
-Jjmeter.save.saveservice.sample_count=true
-Jjmeter.save.saveservice.data_type=false -Jjmeter.save.saveservice.timestamp_format="yyyy/MM/dd
HH:mm:ss.SSS" -Jjmeter.save.saveservice.latency=false
-Jjmeter.save.saveservice.successful=false -Jjmeter.save.saveservice.response_message=false
-Jjmeter.save.saveservice.thread_name=false
-Jjmeter.save.saveservice.thread_counts=false
if you want your results showing like this:
the command should like this:
Start C:\apache-jmeter-2.9\bin\jmeter.bat -n -t C:\testPath.jmx -l C:\test-output\Report_20151211_A.csv -Jjmeter.save.saveservice.output_format=csv -Jjmeter.save.saveservice.print_field_names=true -Jjmeter.save.saveservice.url=true -Jjmeter.save.saveservice.thread_counts=true -Jjmeter.save.saveservice.sample_count=true -Jjmeter.save.saveservice.hostname=true -Jjmeter.save.saveservice.data_type=false -Jjmeter.save.saveservice.response_data.on_error=true --Jjmeter.save.saveservice.timestamp_format="yyyy/MM/dd
HH:mm:ss.SSS"