Hi,
You know what - I had tried that and it didn't work - before posting to this
news group I had googled for an answer and the example that I found had a
space between the comma after Shell32.dll and the SHExitWindowEx n.
When I saw your example I tried it without the space and sure enough...works
like a charm. Does exactly what I want.
Now if I can just get rid of he log on dialog it will be 100% automated.
Thanks alot.
Frank Klassen
Calgary, Alberta
"Gary S. Terhune" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Have you tried:
> rundll32.exe shell32.dll,SHExitWindowsEx 4
>
> The 4 at the end makes it "forced".
>
> For reference:
> "How to Exit Windows 98/Me Automatically Using a Batch File"
> rundll32.exe shell32.dll,SHExitWindowsEx n
>
> --
> Gary S. Terhune
> MS-MVP Shell/User
> www.grystmill.com
>
> "FKlassen" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hello,
>>
>> I have an old WIN 98 PC that am using to as a "server" for our office "In
>> and Out" board.
>>
>> I don't know if the processor is dying or the hard drive is sticking but
>> have found that if I restart it once a day it seems to work fine.
>>
>> I have found DOS command (runonce.exe -q) that will restart the PC but
>> the "There are 20 users connected. Shutting down will disconnect
>> them....." confirmation messages always pops up and you have to hit the
>> YES to continue.
>>
>> QUESTION: Is there a way to disconnect all users with a DOS command
>> first - with no confirmation prompt - and then use the other command to
>> restart the PC?
>>
>> Any help appreciated.
>>
>> Frank Klassen
>
>