On Wed, 12 Oct 2005, Bernd Blaauw wrote:
> FDAPM's location determined by a variable, but CHOICE's location not?
I'm too lazy to do that %-)
>> echo [40;31;1m [R] Перезагрузка - reboot
>> echo [40;36;1m [S] Спать - sleep
>> echo [40;33;1m [P] Выключить питание - power off
>> echo [40;35;1m [V
dima schreef:
Hi. Batch for easy reboot, sleep mode, power off. ;-)
echo off
cls
SET fdapm=D:\FDOS\BIN\fdapm.com
SET flag=C:\TEMP\flag.000
for FDAPM, you could also search the path if the file exists.
for %%x in ( %path% ) do if exist %%x\fdapm.com set fdapm=%%x\fdapm.com
FDAPM's location d
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:
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 ;-).
Eric
---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads,