Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Windows 98 Networking

Disconnect shares and re-start PC

Reply
 
Thread Tools Display Modes
  #1  
Old 07-27-2007, 05:46 PM
Default Disconnect shares and re-start PC



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



FKlassen
Reply With Quote
  #2  
Old 07-27-2007, 05:55 PM
Gary S. Terhune
Guest
 
Posts: n/a
Default Re: Disconnect shares and re-start PC

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



Reply With Quote
  #3  
Old 07-27-2007, 06:43 PM
FKlassen
Guest
 
Posts: n/a
Default Re: Disconnect shares and re-start PC

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

>
>


Reply With Quote
  #4  
Old 07-27-2007, 06:52 PM
Gary S. Terhune
Guest
 
Posts: n/a
Default Re: Disconnect shares and re-start PC

What logon dialogue? Where you have a username and password? Is there more
than one user?

--
Gary S. Terhune
MS-MVP Shell/User
www.grystmill.com

"FKlassen" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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

>>
>>

>



Reply With Quote
  #5  
Old 07-27-2007, 07:01 PM
FKlassen
Guest
 
Posts: n/a
Default Re: Disconnect shares and re-start PC

Only one user - and not even one when you consider it's simply acting as a
server for a simple program.
No password but you still have to hit the enter key to go past it.
It's been so long since I had to work on Win 98 PCs that I can't remember
how to get rid of the log on dialog.

FK



"Gary S. Terhune" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> What logon dialogue? Where you have a username and password? Is there more
> than one user?
>
> --
> Gary S. Terhune
> MS-MVP Shell/User
> www.grystmill.com
>
> "FKlassen" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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
>>>
>>>

>>

>
>


Reply With Quote
  #6  
Old 07-27-2007, 07:10 PM
Gary S. Terhune
Guest
 
Posts: n/a
Default Re: Disconnect shares and re-start PC

"How to Prevent a Windows 95, Windows 98, or Windows Me Logon Prompt at
Startup"
http://support.microsoft.com/kb/152104/en-us
--
Gary S. Terhune
MS-MVP Shell/User
www.grystmill.com

"FKlassen" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Only one user - and not even one when you consider it's simply acting as a
> server for a simple program.
> No password but you still have to hit the enter key to go past it.
> It's been so long since I had to work on Win 98 PCs that I can't remember
> how to get rid of the log on dialog.
>
> FK
>
>
>
> "Gary S. Terhune" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> What logon dialogue? Where you have a username and password? Is there
>> more than one user?
>>
>> --
>> Gary S. Terhune
>> MS-MVP Shell/User
>> www.grystmill.com
>>
>> "FKlassen" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> 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
>>>>
>>>>
>>>

>>
>>

>



Reply With Quote
  #7  
Old 07-27-2007, 08:39 PM
FKlassen
Guest
 
Posts: n/a
Default Re: Disconnect shares and re-start PC

Worked like a charm.

Thanks a million.

Frank Klasen



"Gary S. Terhune" <(E-Mail Removed)> wrote in message
news:ul1$(E-Mail Removed)...
> "How to Prevent a Windows 95, Windows 98, or Windows Me Logon Prompt at
> Startup"
> http://support.microsoft.com/kb/152104/en-us
> --
> Gary S. Terhune
> MS-MVP Shell/User
> www.grystmill.com
>
> "FKlassen" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Only one user - and not even one when you consider it's simply acting as
>> a server for a simple program.
>> No password but you still have to hit the enter key to go past it.
>> It's been so long since I had to work on Win 98 PCs that I can't remember
>> how to get rid of the log on dialog.
>>
>> FK
>>
>>
>>
>> "Gary S. Terhune" <(E-Mail Removed)> wrote in message
>> news:%(E-Mail Removed)...
>>> What logon dialogue? Where you have a username and password? Is there
>>> more than one user?
>>>
>>> --
>>> Gary S. Terhune
>>> MS-MVP Shell/User
>>> www.grystmill.com
>>>
>>> "FKlassen" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> 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
>>>>>
>>>>>
>>>>
>>>
>>>

>>

>
>


Reply With Quote
  #8  
Old 07-27-2007, 10:01 PM
Gary S. Terhune
Guest
 
Posts: n/a
Default Re: Disconnect shares and re-start PC

You're welcome.

--
Gary S. Terhune
MS-MVP Shell/User
www.grystmill.com

"FKlassen" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Worked like a charm.
>
> Thanks a million.
>
> Frank Klasen
>
>
>
> "Gary S. Terhune" <(E-Mail Removed)> wrote in message
> news:ul1$(E-Mail Removed)...
>> "How to Prevent a Windows 95, Windows 98, or Windows Me Logon Prompt at
>> Startup"
>> http://support.microsoft.com/kb/152104/en-us
>> --
>> Gary S. Terhune
>> MS-MVP Shell/User
>> www.grystmill.com
>>
>> "FKlassen" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Only one user - and not even one when you consider it's simply acting as
>>> a server for a simple program.
>>> No password but you still have to hit the enter key to go past it.
>>> It's been so long since I had to work on Win 98 PCs that I can't
>>> remember how to get rid of the log on dialog.
>>>
>>> FK
>>>
>>>
>>>
>>> "Gary S. Terhune" <(E-Mail Removed)> wrote in message
>>> news:%(E-Mail Removed)...
>>>> What logon dialogue? Where you have a username and password? Is there
>>>> more than one user?
>>>>
>>>> --
>>>> Gary S. Terhune
>>>> MS-MVP Shell/User
>>>> www.grystmill.com
>>>>
>>>> "FKlassen" <(E-Mail Removed)> wrote in message
>>>> news:(E-Mail Removed)...
>>>>> 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
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>

>>
>>

>



Reply With Quote
  #9  
Old 07-27-2007, 10:03 PM
Gary S. Terhune
Guest
 
Posts: n/a
Default Re: Disconnect shares and re-start PC

Sorry! I pasted in the wrong line. The link should be:
"How to Exit Windows 98/Me Automatically Using a Batch File"
http://support.microsoft.com/kb/234216

--
Gary S. Terhune
MS-MVP Shell/User
www.grystmill.com

"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

>
>



Reply With Quote
Reply

Tags
disconnect, restart, shares

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 10:57 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.