mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Update build.bat to use wmic os get LocalDateTime /value instead of %DATE% which is not consistent across computers
This commit is contained in:
@@ -2,8 +2,12 @@
|
|||||||
|
|
||||||
setlocal EnableDelayedExpansion
|
setlocal EnableDelayedExpansion
|
||||||
|
|
||||||
set curr_year=%DATE:~-4%
|
for /f "usebackq tokens=1,2 delims=,=- " %%i in (`wmic os get LocalDateTime /value`) do @if %%i==LocalDateTime (
|
||||||
set curr_month=%DATE:~3,2%
|
set CURR_DATE_TIME=%%j
|
||||||
|
)
|
||||||
|
|
||||||
|
set curr_year=%CURR_DATE_TIME:~0,4%
|
||||||
|
set curr_month=%CURR_DATE_TIME:~4,2%
|
||||||
|
|
||||||
:: Make sure this is a decent name and not generic
|
:: Make sure this is a decent name and not generic
|
||||||
set exe_name=odin.exe
|
set exe_name=odin.exe
|
||||||
|
|||||||
Reference in New Issue
Block a user