I have a computer running Window Server 2008 R2 Standard. It runs several periodic tasks written by Windows cmd
.
Recently these batch jobs work improperly and i realize that the logic of the script was broken. It is because is this server when you display %date%
variable, what you receive in stdout is:
- Actual value - break the logic of the script:
C:>echo %date%
01/09/2019
- The output of
%date%
variable should be as below (What i expect (also default format of%date%
variable )
C:>echo %date%
Wed 01/09/2019
I have tried several tutorial to modify on registry but it was unsuccessful. Restarting server is restricted since other important applications are running .
Please suggest any resolution for this issue?