怎么用批处理文件自动关机〔可以选择以天或小时或分钟或秒计时〕?谢谢!

[复制链接]
查看11 | 回复1 | 2013-5-1 21:22:53 | 显示全部楼层 |阅读模式
只接受整数,小数不行.@echo off&setlocal enabledelayedexpansion:unitset "day_output=天"&echo 天: dayset "hour_output=小时"&echo 小时: hourset "min_output=分钟"&echo 分钟: minset "sec_output=秒"&echo 秒: secset/p "unit=请设定单位(day,hour,min,sec): "if "%unit%"=="day" (set total=86400goto start)if "%unit%"=="hour" (set total=3600goto start)if "%unit%"=...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行