随笔分类 -  Bat

摘要:@echo off从当前命令行开始起不输出到屏幕上pause 暂停处理:top 跳转锚点 和goto top 跳转到锚点根据选择跳转到锚点choice /c:123 /m "1:a,2:b,3:c"if errorlevel 3 goto pushif errorlevel 2 goto synci... 阅读全文
posted @ 2015-04-27 09:15 xachary 阅读(160) 评论(0) 推荐(0) 编辑
摘要:@echo off:openchoice /c:123 /m "1:创建,2:终止,3:删除"if errorlevel 3 goto deleteif errorlevel 2 goto endif errorlevel 1 goto create:create@schtasks /create ... 阅读全文
posted @ 2014-05-19 15:31 xachary 阅读(2603) 评论(0) 推荐(0) 编辑
摘要:@echo off:startchoice /c:12 /m "输入1为设置定时关机,2为取消定时关机: "if errorlevel 2 goto cancelif errorlevel 1 goto shutdown:shutdownset /p time=请输入分钟数: set /a time_m=%time%*60shutdown -s -f -t %time_m% 2>nulif errorlevel 2 goto reset@echo %time%分钟后将自动关机goto end:cancelshutdown -a@echo 已经取消定时关机goto en 阅读全文
posted @ 2013-08-29 13:04 xachary 阅读(836) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示