如題︰VISTA系統下的睡眠指令是什麼?
我們知道 關機指令 是 ︰ shutdown.exe -s xxx
這樣電腦會在xxx秒後自動關機
但如何設定指定 時間後 自動睡眠呢?
如果沒這個指令
那請問 如何寫 自動睡眠檔 sleep.bat 呢?
我看到有人這樣寫
不知道對不對?
-----------------------------------------------
@echo off
setlocal enableextensions
:SETUP
set sec=0
set /a sec=%1
set cout=0
:LOOP
set time_1=%time:~-4,1%
:ADD
set time_2=%time:~-4,1%
if not %time_1%==%time_2% (goto COUNT)
goto ADD
:COUNT
set /a cout+=1
if %cout% equ %sec% (goto :EOF)
goto LOOP
------------------------------------------------




























































































