I have a batch script that backs up a folder to another folder etc and names the backed up folder to %date% %time% etc(only shows date currently) and I want it to show only hours and minutes. if I use %time::=.% i get 21.46.56.26 etc but I want only the 21.46 and nothing else.
Script:
title Backing up the universe..
echo Backing up the universe..
set savedate=%date:/=.%
set savetime=%time::=.%
echo Set Variable 'savedate' to %savedate%
echo Set Variable 'savetime' to %savetime%
pause
md Universe-Backup\"%savedate%"
echo Created backup folder.
pause
echo %savedate%
robocopy %CD%\Universe\ %CD%\Universe-Backup\\"%savedate%" /e
title The universe has been backedup!
echo The universe has been backedup!
title Starting server..
echo Starting server..
START %CD%\Server.exe