Hello friends,
I have a basic level at batch files. In one of my bacth file I use below variable for naming my backup file whose name is "2016.08.16-(08.30)-FLAMENT.rar"
set HM=%time:~0,2%.%time:~3,2%
echo (%HM%)
--produces--> (08.30)
The problem is that I want to use the same time (08.30) for the other file which related to the previous one. But since the time changes throughout the process in the same batch file,
%HM% produces (08.32), not (08.30) for the time changed. how can I use same time for all processes thoughout the batch file ?
I mean, I want %HM% to produce same result once the batch file runs until it finishes although the time changes. How can I do this ?
Best Regards