@echo off
if %time:~0,2% geq 8 if %time:~0,2% lss 23 goto :eof
shutdown -s -t 60 -c " 现在是休息时间!>>>请休息<<<
作者: htysm 时间: 2006-6-26 09:22 不知道这样行不行.
net user username /times:m-f,8:00-23:00;sa-su,8:00-23:00
[ Last edited by htysm on 2006-6-26 at 09:47 ]作者: BAT 时间: 2006-6-28 21:19 能否解释一下程序是如何执行的,lss,geq是什么含义,time 后的~0,2%是什么意思,大家能解释一下么作者: htysm 时间: 2006-7-15 11:49 If
在批处理程序中执行条件处理。
语法
if [not] errorlevel number command [else expression]
if [not] string1==string2 command [else expression]
if [not] exist filename command [else expression]
如果启用了命令扩展,请使用以下语法:
if string1 compareop string2 command [else expression]