D
Daniel
Hello Everyone,
I have a small problem. I have a batch that has the following:
-------Start---------
set zdate=%date:~4%
set zdate=%zdate:/=%
set ztime=%time::=%
set ztime=%ztime:~0,6%
copy c:\TestText.txt C:\%zdate%%ztime%.txt
-----------End-----------
The batch runs great except if it is ran before 10:00 and the time has a
single digit hour then it puts a SPACE between the date and time in the text
name. This causes problems and I need to find a way to either not have the
space or put a zero before the hour.
Any help is greatly appreciated.
Thanks,
Daniel
I have a small problem. I have a batch that has the following:
-------Start---------
set zdate=%date:~4%
set zdate=%zdate:/=%
set ztime=%time::=%
set ztime=%ztime:~0,6%
copy c:\TestText.txt C:\%zdate%%ztime%.txt
-----------End-----------
The batch runs great except if it is ran before 10:00 and the time has a
single digit hour then it puts a SPACE between the date and time in the text
name. This causes problems and I need to find a way to either not have the
space or put a zero before the hour.
Any help is greatly appreciated.
Thanks,
Daniel