Created
October 9, 2017 18:14
-
-
Save nyanshiba/ce96cedd40b599865db26804e38c43f7 to your computer and use it in GitHub Desktop.
23時~7時の夜間時間(東京電力)にプログラムを実行して電気代を節約卍
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
rem dos標準の環境変数timeの先頭2文字が7以上且つ23未満の場合300秒待ってループ | |
:electric | |
if %time:~0,2% geq 7 ( | |
if %time:~0,2% lss 23 ( | |
timeout /t 300 | |
goto :electric | |
) | |
) | |
rem ここから処理 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment