I want to set a Windows environment variable from the results of TIME /t.
In Windows, the %time% variable yields one format (13:17:52.79), whereas TIME /t has another (01:17 PM).
I've tried sending it to a text file and trying to append "SET xxx=" but there is always a line feed that I cannot seem to eliminate.
For example, I can "ECHO Set xxx= >> TTT.txt" and "TIME /t >> TTT.txt" but the results are on two separate lines. The same is true when I make two files and try to COPY /b. I have also experimented with similar methods using WMIC.