Como faço para desligar automaticamente uma máquina DOS usando software? O PC NÃO TEM CHAVE DE ENERGIA

3

Eu tenho um PC antigo que não tem interruptor de energia (é uma longa história). Está executando o DOS 6.20. Eu estou procurando uma chamada de interrupção ou qualquer coisa para desligar o computador usando o software que eu preciso para desligar após operações autônomas. Estou um pouco familiarizado com o ASM e interrompo e não tenho medo de experimentar.

    
por TomOlsen 28.06.2016 / 15:25

1 resposta

3

Estou procurando uma chamada de interrupção ou qualquer coisa para desligar o computador

Se você tiver hardware compatível com ATX, poderá usar ATXOFF.COM

ATXOFF.COM 1.3 english

This simply turns off power on ATX Systems (no cache-flushing!), but it requires APM 1.2 to work.

Fonte dostools

The ATXOFF.COM I have is only 40 bytes. Hardly worth griping over, or continuing this childish gloating.

Simply put. If the OP really wants a batch only solution, just download a copy of ATXOFF, and create a DEBUG (native to 6.22) script from it. Like this...

=== ATXOFF.SCR ===
A
MOV     AX,5301
XOR     BX,BX
INT     15
MOV     AX,530E
XOR     BX,BX
MOV     CX,0102
INT     15
MOV     AX,5307
XOR     BX,BX
INC     BX
MOV     CX,0003
INT     15
RET

G
ATXOFF.COM Version 1.3
=== End of ATXOFF.SCR ===

Then all that needs done is to input the script into DEBUG in the batch.

debug < atxoff.scr > nul

As mentioned elsewhere, this requires atx hardware, and when run, the power goes off immediately, so be sure to flush your drive cache first.

Fonte desligamento e reinicialização em arquivos em lote

    
por 28.06.2016 / 15:51