0
3

More than 3 years have passed since last update.

シャットダウン.batと再起動.bat

Posted at
シャットダウン.bat
@echo off
SET /P selected="シャットダウンしますか(y/n)?"
if /i "%selected%"=="y" (goto :yes)
if /i "%selected%"=="yes" (goto :yes)
exit 0

:yes
shutdown -s -t 0

exit 0
再起動.bat
@echo off
SET /P selected="再起動しますか(y/n)?"
if /i "%selected%"=="y" (goto :yes)
if /i "%selected%"=="yes" (goto :yes)
exit 0

:yes
shutdown -r -t 0

exit 0
0
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
3