Just for the record, actual "international" Date/time support is quite complex.:timestamp for /F "tokens=1-4 delims=:., " %%a in ("%TIME%") do set tijd=%%a:%%b:%%c for /F "tokens=1-4 delims=/- " %%A in ('date/T') do set datum=%%A-%%B-%%C-%%D set timestamp=[%datum%][%tijd%] goto :EOF
Its possible the timestamp needs some little work to make it international
Its also possible that I made some errors on the code, but I’m sure you will find out the useful pieces to place in your batch
But since it is just for a timestamp, there is no real *need* to parse the %TIME% and the %DATE% (instead of using the date /t command) variables, every user will have the log with his/her regional settings, or in other words, wouldn't this work allright?
:timestamp set timestamp=[%DATE%][%TIME%] goto :EOF