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

@@ -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)