Subject: | |
From: | |
Reply To: | |
Date: | Thu, 4 Sep 1997 10:56:17 +0100 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Mark Wilkinson wrote:
>
>I used to work for a small company in the West-Country in England (who
>shall remain nameless - heh heh heh) who had a dusty PC sitting in a corner
>which was used for EDI. One day, a guy from the EDI software vendor arrived
>and did an upgrade. Needless to say, the thing stopped working correctly.
>It would be OK for 12 hours, then DOS would crash with "Too many files
>open".
>
>Apparently, there was a rogue program in the suite which was leaving a file
>open every time it ran. The Vendor's solution was to write a little program
>called REBOOT.EXE which was scheduled to run once in every 24 hours <gg>
>Problem solved!
>
>Now if I could just get hold of the source......
>
>Mark Wilkinson
>
The program probably had something like this in-line assembler in it.
long BootVec = 0xF000FFF0;
__asm
{
MOV AH, 0Dh
int 21H
MOV AX, 0h
MOV DS,AX
MOV AX, 40h
MOV ES,AX
OR WORD PTR ds:[17h],0Ch
MOV AX,4F53h
INT 15h
MOV WORD PTR ES:[72h], 0000h
MOV AX, 0F000h
MOV DS,AX
JMP BootVec
INT 19h
}
This is OK in DOS but I would not like to say what would happen to a 32bit OS!
Oh BTW I have included my e-mail address in my signature (Ken).
Ken Vickers
Manager LINKWAY Development and Support
Computing Solutions Limited
TEL +44 (0) 1905 794400
FAX +44 (0) 1905 794464
mailto:[log in to unmask] or
mailto:[log in to unmask]
|
|
|