1.关机,取消关机
::关机 echo 30秒之后关机 %systemroot%\system32\shutdown -s -t 30 ::取消关机 echo 取消关机 %systemroot%\system32\shutdown -a
2.oralce,或者mysql滴服务启动与关闭
::oralce service start net start OracleVssWriterORCL net start OracleDBConsoleorcl net start OracleOraDb10g_home1iSQL*Plus net start OracleOraDb10g_home1TNSListener net start OracleServiceORCL ::oralce stop service net stop OracleServiceORCL net stop OracleOraDb10g_home1TNSListener net stop OracleOraDb10g_home1iSQL*Plus net stop OracleDBConsoleorcl net stop OracleVssWriterORCL ::mysql start service net start MySQL ::mysql stop service net stop MySQL
脚本之家小编:一般不要直接就关闭机器,容易出现问题,建议就是先停止数据库再重启服务器。