On Tue, 11 Oct 2005, Eric Auer wrote: >Hi, 5 byte reboot? Well if you only wanted THAT, just do: >debug >ecs:100 >ea 00 00 ff ff > >rcx >5 >nreboot.com >w >q > >and you have the file ;-). Hi. Batch for easy reboot, sleep mode, power off. ;-) echo off cls SET fdapm=D:\FDOS\BIN\fdapm.com SET flag=C:\TEMP\flag0000.000
echo Чего изволишь? echo [40;31;1m [R] Перезагрузка echo [40;36;1m [S] Спать echo [40;33;1m [P] Выключить питание echo [40;35;1m [V] Монитор в режим низкого энергопотребления echo [0m [x] Передумал, выйти. D:\FDOS\BIN\CHOICE.EXE /c:rspvx Выбирай: if errorlevel 5 goto exit if errorlevel 4 goto Video if errorlevel 3 goto Power if errorlevel 2 goto Sleep if errorlevel 1 goto Reboot :Video %fdapm% VGAoff pause %fdapm% VGAon goto exit :Power if exist %flag% del %flag% %fdapm% PowerOff goto exit :Sleep %fdapm% VGAoff %fdapm% Suspend REM %fdapm% STANDBY pause %fdapm% SpinUp %fdapm% VGAon goto exit :Reboot if exist %flag% del %flag% REM %fdapm% COLDboot %fdapm% WARMboot goto exit :exit SET fdapm= SET flag= echo [0m -- Take care. Your friend, dima <pr0zac*softhome.net> <2:550/112> ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user