Last active
October 17, 2022 13:12
-
-
Save ibombonato/2e6dbb516d0bc10b64a67db3c191c616 to your computer and use it in GitHub Desktop.
Get local date in .bat file - bash script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
for /F "usebackq tokens=1,2 delims==" %%i in (`wmic os get LocalDateTime /VALUE 2^>NUL`) do if '.%%i.'=='.LocalDateTime.' set ldt=%%j | |
set actual_date=%ldt:~0,4%%ldt:~4,2%%ldt:~6,2% | |
echo Local date is %actual_date% | |
SET MY_PROGRAM=E:/TempoSilencio/silence_extractor.exe | |
SET MY_BASE_PATH=I:\SPEECHMINER\PROCESSADO | |
SET MY_COMMAND=%MY_PROGRAM% "%MY_BASE_PATH%" "%actual_date%" "%actual_date%" | |
ECHO %MY_COMMAND% | |
START %MY_COMMAND% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment