Last active
December 15, 2015 08:59
-
-
Save valvallow/5235483 to your computer and use it in GitHub Desktop.
reminder2
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 | |
ECHO -------------------------------------------- | |
ECHO 指定時刻にメッセージを表示します | |
ECHO -------------------------------------------- | |
SET /p MESSAGE_TEXT="メッセージを入力して下さい > " | |
SET /p START_TIME="時刻を指定して下さい(ex. 09:15) > " | |
SET TIME2=%time: =0% | |
SET TASK_CREATE_TIME=%TIME2:~0,2%%TIME2:~3,2%%TIME2:~6,2% | |
SET TASK_CREATE_DATE=%date:~-10,4%%date:~-5,2%%date:~-2,2% | |
SET TASK_ID=%USERNAME%-%TASK_CREATE_DATE%%TASK_CREATE_TIME% | |
SCHTASKS /CREATE /SC ONCE /TN %TASK_ID% /TR "msg.exe console "%MESSAGE_TEXT% /ST %START_TIME% /V1 /Z | |
PAUSE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
reminder
https://gist.github.com/valvallow/3837362