On a Windows based system,
Open notepad and write the below piece of code in it.
@ECHO OFF
C:\ set SAVESTAMP=%DATE:/=-%@%TIME::=-%
C:\ set SAVESTAMP=%SAVESTAMP: =%
C:\ set SAVESTAMP=%SAVESTAMP:,=.%.jtl
jmeter -n -t "Your .jmx file path" -l %SAVESTAMP%
Now save this as a batch cript - filename.bat
Go to the location where you saved your file and run it by double-click or select and enter.
This should do the trick for you.
On Linux based system you might want to run it with a similar shell script.