简单批处理,time和shutdown命令的使用~

[复制链接]
查看11 | 回复1 | 2010-7-2 16:52:43 | 显示全部楼层 |阅读模式
自己写的一个自动关机的批处理,有些错误,不知道怎么改,求大虾帮忙~
@echo off
cls
title Leoxh's TimeMgr
echo.
echo. Welcome back !! The Mgr. will make your TIME more efficient !!
echo.
:main
set /p tin=SetTime(/min) -^>
set flag=%tin:~3,1%
if /i "%flag%"==":" (
goto point
) else (
goto period)
:period
set /a b=%tin%*1
set /a t=%tin%*60
if %b% equ %tin% (
goto setime
) else (
goto main)
:point
set hh=%time:~0,2%&set mm=%time:~3,2%&set ss=%time:~6,5%
set /a t0 = %hh%*60+%mm%
set /a t1 = %tin:~0,2%*60+%tin:~3,2%
set /a tmp=%t1%-%t0%
if "%tmp%"if /i "%tin%"=="Q" GOTO periodecho.%tin%|findstr /i "^[0-9]*$">nul&&goto setimefor /f "tokens=1,2 delims=:" %%i in ("%tin%") do (e
回复

使用道具 举报

千问 | 2010-7-2 16:52:43 | 显示全部楼层
给我个邮箱我发过来
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行