 |
|
 |
|
Next: Created mirror now have to edit boot.ini?
|
| Author |
Message |
External

Since: Sep 04, 2004 Posts: 31
|
(Msg. 1) Posted: Mon Dec 06, 2004 1:35 am
Post subject: Code for ReStart........ Archived from groups: microsoft>public>win98>gen_discussion (more info?)
|
|
|
hi,,,,,,,,,,
here is code i have for restart of computer, but it just seems to
hang after starting its job, have i got a dot or comma in wrong
place....? (have this attached to an icon on desktop, thought i'd
save a coupla clicks as time is all we have..........he he)
C:\WINDOWS\RUNDLL.EXE user.exe,exitwindowsexec
tia
g/h >> Stay informed about: Code for ReStart........ |
|
| Back to top |
|
 |  |
External

Since: Oct 31, 2004 Posts: 8
|
(Msg. 2) Posted: Mon Dec 06, 2004 1:35 am
Post subject: Re: Code for ReStart........ [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
RUNDLL32 SHELL32.DLL,SHExitWindowsEx n
n can be any combination (sum) of the following numbers:
0 Logoff
1 Shutdown
2 Reboot
4 Force
8 Poweroff (if supported by the hardware)
--
William
"grasshopper" wrote in message
> hi,,,,,,,,,,
>
> here is code i have for restart of computer, but it just seems to
> hang after starting its job, have i got a dot or comma in wrong
> place....? (have this attached to an icon on desktop, thought i'd
> save a coupla clicks as time is all we have..........he he)
>
> C:\WINDOWS\RUNDLL.EXE user.exe,exitwindowsexec
>
> tia
> g/h
>
> >> Stay informed about: Code for ReStart........ |
|
| Back to top |
|
 |  |
External

Since: Mar 17, 2004 Posts: 2768
|
(Msg. 3) Posted: Mon Dec 06, 2004 1:35 am
Post subject: Re: Code for ReStart........ [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
While it may work in some systems, Win98 doesn't support a "warm" reboot, which
is what that command initiates ("warm" restart restarts windows without fully
restarting the machine.)
Use the following instead:
C:\WINDOWS\RUNDLL32 SHELL32.DLL,SHExitWindowsEx 2
Unlike the older User.exe function, the Shell32.exe function's parameters are
case sensitive. Everything after the comma must be capitalized as above. The 2
tells it to reboot. Other options are available. See
<a rel="nofollow" style='text-decoration: none;' href="http://aumha.org/win4/a/shutcut.php" target="_blank">http://aumha.org/win4/a/shutcut.php</a>
--
Gary S. Terhune
MS MVP Shell/User
"grasshopper" wrote in message
> hi,,,,,,,,,,
>
> here is code i have for restart of computer, but it just seems to
> hang after starting its job, have i got a dot or comma in wrong
> place....? (have this attached to an icon on desktop, thought i'd
> save a coupla clicks as time is all we have..........he he)
>
> C:\WINDOWS\RUNDLL.EXE user.exe,exitwindowsexec
>
> tia
> g/h
>
> >> Stay informed about: Code for ReStart........ |
|
| Back to top |
|
 |  |
External

Since: Oct 31, 2004 Posts: 8
|
(Msg. 4) Posted: Fri Dec 10, 2004 1:01 am
Post subject: Re: Code for ReStart........ [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
replace the "n" with the corresponding number to do what you want
To Logoff
RUNDLL32 SHELL32.DLL,SHExitWindowsEx 0
To Shutdown
RUNDLL32 SHELL32.DLL,SHExitWindowsEx 1
To Restart
RUNDLL32 SHELL32.DLL,SHExitWindowsEx 2
To Shutdown (1) and Poweroff (
RUNDLL32 SHELL32.DLL,SHExitWindowsEx 9
and so on...
--
William
"grasshopper" wrote in message
>
>> RUNDLL32 SHELL32.DLL,SHExitWindowsEx n
>>
>> n can be any combination (sum) of the following numbers:
>> 0 Logoff
>> 1 Shutdown
>> 2 Reboot
>> 4 Force
>> 8 Poweroff (if supported by the hardware)
>>
>>
>> --
>> William
>
>
> hi william,,,,
> now i'm a tad confused.
> the code you have here, is that also a valid ReStart code?
>
> g/h
>
> >> Stay informed about: Code for ReStart........ |
|
| Back to top |
|
 |  |
External

Since: Mar 17, 2004 Posts: 2768
|
(Msg. 5) Posted: Fri Dec 10, 2004 10:59 am
Post subject: Re: Code for ReStart........ [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Only difference I see is that mine fully qualified the path to RunDLL.exe. Not
important if RunDLL is in the Path. Other than that, it's true that there are
more options than those supplied by WTC.
Did you read the link that accompanied my suggestion?
--
Gary S. Terhune
MS MVP Shell/User
"grasshopper" wrote in message
>
> > replace the "n" with the corresponding number to do what you want
> >
> > To Logoff
> > RUNDLL32 SHELL32.DLL,SHExitWindowsEx 0
> >
> > To Shutdown
> > RUNDLL32 SHELL32.DLL,SHExitWindowsEx 1
> >
> > To Restart
> > RUNDLL32 SHELL32.DLL,SHExitWindowsEx 2
> >
> > To Shutdown (1) and Poweroff (
> > RUNDLL32 SHELL32.DLL,SHExitWindowsEx 9
> >
> > and so on...
> >
> >
> >
> > --
> > William
>
> ahh aagain,,,,,,,,,now i see.
> I'll copy all that to notepad and peruse then peruse again.
> Gary's worked just fine too (better post to tell him that too) even tho' its
> code has a couple of dis-similarities to yours.
> I've actually got gary's coded in at the moment and have rebooted twice just
> fine.
> ta for reply and info
> gh
>
> >> Stay informed about: Code for ReStart........ |
|
| Back to top |
|
 |  |
| Related Topics: | blackscreen on restart - Any ideas what's causinng my computer to hang and go to a blackscreen on restart.
Shutdown OK Restart not OK - Hi all, I've had this problem for a week or 2. Computer shuts down OK, but if I do a restart it hangs on the screeen 'please wait while your computer shuts down' it doesn't restart, have to use power button. Shutdown is fine, goes to 'please wait whil...
Auto restart - How to add in task scheduler command for auto restart computer in specific time (compputer works under Windows 98 SE all the time so i need to restart at nights because low memory and short "freezing" of picture) Thanks
restart after standby - wehen I try to go with winxp into standby modus it shuts down but the computer restarts at once. What could that be?
reformatted HD no xp key code HELP!!!!! - emer. boot disk stops at virus check? was given win xp pro gets as far as needing reg. code, code does not work! have orig. gateway software missing 1st startup disk! anyway to do this without purchasing anything? |
|
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum
|
|
|
|
 |
|
|