Skip to content

Commit

Permalink
Use en-us locale to always get weekday names in English
Browse files Browse the repository at this point in the history
  • Loading branch information
marc.fauser@fauser-ag.com committed Oct 3, 2011
1 parent 8c278ac commit c928c87
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions backup_hMailServer.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ set PRETTY_DATE=%CURRENT_DATE:~-4%-%CURRENT_DATE:~3,2%-%CURRENT_DATE:~0,2%
::Pretty date format yyyy-mm-dd. Works for date format dd.mm.yyyy

set TMPVBSWD=%TEMP%\_TMP$.VBS
echo WScript.Echo WeekDay( Date, vbMonday ) >%TMPVBSWD%
echo SetLocale("en-us") >%TMPVBSWD%
echo WScript.Echo WeekDay( Date, vbMonday ) >>%TMPVBSWD%
for /F %%? in ('CSCRIPT //NOLOGO %TMPVBSWD%') do set WEEKDAY=%%?
del %TMPVBSWD%
echo WScript.Echo WeekDayName( WeekDay( Date, vbMonday ), False, vbMonday ) >%TMPVBSWD%
echo SetLocale("en-us") >%TMPVBSWD%
echo WScript.Echo WeekDayName( WeekDay( Date, vbMonday ), False, vbMonday ) >>%TMPVBSWD%
for /F %%? in ('CSCRIPT //NOLOGO %TMPVBSWD%') do set WEEKDAYNAME=%%?
del %TMPVBSWD%

Expand Down

0 comments on commit c928c87

Please sign in to comment.