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.