fix date grabbing

This caused the ZIP file to not be created properly or be moved once done
This commit is contained in:
untuned
2021-04-29 17:38:14 -04:00
parent 87632a0c80
commit 5d1ffe2252
4 changed files with 4 additions and 5 deletions

View File

@@ -9,7 +9,7 @@ call npm run production
cd ..
mklink /J "%~dp0\bin\x64\Release\html" "%~dp0\html\dist"
setlocal
set TODAY=%DATE:~0,4%%DATE:~5,2%%DATE:~8,2%
for /f %%a in ('powershell -Command "Get-Date -format yyyyMMdd"') do set TODAY=%%a
set ZIP_NAME=VRCX_%TODAY%.zip
echo %ZIP_NAME%
rem using 7-Zip (https://www.7-zip.org)

View File

@@ -8,7 +8,7 @@ call npm run production
cd ..
mklink /J "%~dp0\bin\x64\Release\html" "%~dp0\html\dist"
setlocal
set TODAY=%DATE:~0,4%%DATE:~5,2%%DATE:~8,2%
for /f %%a in ('powershell -Command "Get-Date -format yyyyMMdd"') do set TODAY=%%a
set ZIP_NAME=VRCX_%TODAY%.zip
echo %ZIP_NAME%
rem using bandizip (https://www.bandisoft.com/bandizip)

View File

@@ -1,6 +1,5 @@
@echo off
for /f %%a in ('wmic os get LocalDateTime ^| find "."') do set DTS=%%a
set TODAY=%DTS:~0,4%%DTS:~4,2%%DTS:~6,2%
for /f %%a in ('powershell -Command "Get-Date -format yyyyMMdd"') do set TODAY=%%a
set ZIP_NAME=VRCX_%TODAY%.zip
echo %ZIP_NAME%
rem using 7-Zip (https://www.7-zip.org)

View File

@@ -1,6 +1,6 @@
@echo off
setlocal
set TODAY=%DATE:~0,4%%DATE:~5,2%%DATE:~8,2%
for /f %%a in ('powershell -Command "Get-Date -format yyyyMMdd"') do set TODAY=%%a
set ZIP_NAME=VRCX_%TODAY%.zip
echo %ZIP_NAME%
rem using bandizip (https://www.bandisoft.com/bandizip)