I have a search for an easy answer but not found it. I have a script that works fine however i would like to add time but it wont give me the result i would like .
copy "C:\Temp\ok.txt" "C:\Temp\%date:/=_%_ok.txt"
This gives me "19.02.2018_ok.txt"
I have tried this:
copy "C:\Temp\ok.txt" "C:\Temp\%date~"YYYY-MM-DD":%time~"HH:MM"/=_%_ok.txt"
If possible i would like "2018-02-19 09:59_ok.txt"