How to transform in one cmd line current date & time into file name without spaces?
I know how to do it in two lines:
set file_name=file_%date%-%time:~0,2%%time:~3,2%%time:~6,2%
rem echo %file_name% return "file_2015-08-01- 85012" and it's not ok
(contain space)
set file_name=%file_name: =0%
echo echo %file_name% return "file_2015-08-01-085012" and it's ok
(no spaces)
but I can't run program in *.bat file - I have to run "original" *.exe which require all parameters in one line.