Networking Forums

Networking Forums > Computer Networking > Windows Networking > Disconnect shares and re-start PC

Reply
Thread Tools Display Modes

Disconnect shares and re-start PC

 
 
FKlassen
Guest
Posts: n/a

 
      07-27-2007, 04:46 PM
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
 
 
 
 
Gary S. Terhune
Guest
Posts: n/a

 
      07-27-2007, 04:55 PM
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
 
FKlassen
Guest
Posts: n/a

 
      07-27-2007, 05:43 PM
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
 
Gary S. Terhune
Guest
Posts: n/a

 
      07-27-2007, 05:52 PM
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
 
FKlassen
Guest
Posts: n/a

 
      07-27-2007, 06:01 PM
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
 
Gary S. Terhune
Guest
Posts: n/a

 
      07-27-2007, 06:10 PM
"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
 
FKlassen
Guest
Posts: n/a

 
      07-27-2007, 07:39 PM
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
 
Gary S. Terhune
Guest
Posts: n/a

 
      07-27-2007, 09:01 PM
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
 
Gary S. Terhune
Guest
Posts: n/a

 
      07-27-2007, 09:03 PM
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

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Network shares to DC disconnect at remote site. EPfaffinger Windows Networking 2 11-06-2007 05:24 PM
Shares disconnect after an hour or so SolveIT Windows Networking 1 10-26-2007 03:15 PM
dhcpd in rc script doesn't start, but it does start by hand j Linux Networking 3 06-08-2004 12:30 PM
WIN ME start up Network disconnect? jtd Windows Networking 0 11-04-2003 08:40 PM
RH9: I need to start ADSL-START as root for the first time after boot .... Gabolander Linux Networking 3 08-13-2003 09:52 AM



1 2 3 4 5 6 7 8 9 10 11