Page 1 of 1 1
Topic Options
#49030 - 2000-02-18 10:39 AM win95 shutdown failure
Anonymous
Unregistered


Problem synopsis: reboot fails if user clicks wrong buttons in Kix message box.

QUESTION--any know way to force reboot regardless of user's clicks???

Problem duplication: Follow workaround in remarks in Kixtart resource kit.

Kix labeled message box#1--"You must quit this program before you quit windows" Click
cancel button instead of ok button.

Kix labeled message box#2--"program not responding..." Click Cancel button.


Kix code fragment, exit lines:
$final=MESSAGEBOX ("Rebooting windows to enable network settings.",
"Restored settings",4112)

SHELL "%windir%\RUNDLL32.EXE user.exe,ExitWindows"
$RC = Shutdown("","System being rebooted to enable new settings.",5,0,1)

SENDKEYS("exit{ENTER}")


Kixversion: 3.62


Any help would be appreciated, thanks.



Top
#49031 - 2000-02-18 11:44 AM Re: win95 shutdown failure
Anonymous
Unregistered


You could try something like:

(kix file)
run shutdown.bat

(shutdown.bat)
kill.exe kix32.exe
kill.exe otherprocesses.exe
shutdown.exe


So kix starts a separate process to run shutdown.bat, which then nukes kixtart and everything else interfering with normal shutdown. In this manner, you could nail all console-apps before issuing a generic shutdown command (which can be done in many different ways)

------------------
K Torkelson
Sys Admin Analyst
ktorkelson@providentfunding.com


Top
#49032 - 2000-02-18 11:45 AM Re: win95 shutdown failure
Anonymous
Unregistered


oh by the way in case you didn't know, kill.exe is found on the windows 98 (I think) resource kit.. but it'll work with 95 or even NT.

------------------
K Torkelson
Sys Admin Analyst
ktorkelson@providentfunding.com


Top
#49033 - 2000-02-18 11:45 AM Re: win95 shutdown failure
Anonymous
Unregistered


oh by the way in case you didn't know, kill.exe is found on the windows 98 (I think) resource kit.. but it'll work with 95 or even NT.

------------------
K Torkelson
Sys Admin Analyst
ktorkelson@providentfunding.com


Top
#49034 - 2000-03-10 04:59 PM Re: win95 shutdown failure
Anonymous
Unregistered


At this FTP-site I finally found a shareware program which really is able to shut down Win9x no matter what the OS is doing.

The site is: ftp://VOLftp.tin.it (IP: 195.31.191.11)

The program file is: "ShutDown v1.65" (SDOWN165.ZIP)

It works like a dream, really. You can run it from your \\myserver\netlogon-share with KiXtart if you wish:

RUN @LDRIVE + "SHUTDOWN.EXE (+ any switches)"

Here is the READ.ME to "ShutDown v1.65":

Description:
Why click on Start to shutdown your computer in Windows 95? In Windows NT, why go to the Program Manager, click on File, Shutdown, and then shutdown? ShutDown makes it easier by providing the same shutdown service NT's Program Manager and 95's Start button does. Make it a shortcut on the 95 desktop. In Windows NT, it may be put on the Microsoft Office Toolbar. You can also run ShutDown from the command line. Great for shutting down the computer from a batch file or a scheduling program. The standard shutdown procedure is used, so don't worry about losing data during the shutdown. NT or 95 will ask every running application if they want to quit or not. ShutDown also supports timed shutdowns and running of a batch file or program before shutting down.


License
The licensing fee is $10 per license. Site licenses are available. Please read LICENSE.TXT for more information. Command Line Parameters:
/RESTART
Restart Windows, or "quick" reboot. Same as holding down Shift when using the regular Windows 95 shutdown.
/RESTART under Windows 95 does a restart without a reboot.
/REBOOT
Reboot the computer
/LOGOFF
Close all programs and log current user off.
/FORCE
Shutdown running applications whether they want to quit or not. WARNING: If you use this switch and an application has unsaved data, the data will be lost.
/MSDOS
Restart the computer in MS-DOS mode. This feature is only available in Windows 95.
/HELP
Display this same information.
/T:n
Where "n" is the amount of time to wait before shutting down. "n" can be expressed in minutes or an actual time.
The presence of a second colon in the option will determine how "n" is interpreted. /T:15 means wait 15 minutes,
/T:15:45 means to shut down at 3:45 PM. If "n" specifies a time, it must be in 24 hour format. Please see the examples for more information.
/F:[path]filename.ext [params]
Run the named file just before shutting down.
[path] is optional. [params] are parameters that will be passed to filename.ext. NOTE: If you use the /F: switch, make it the LAST parameter on the command line. In this way, the parameters will be interpreted correctly.
/POWEROFF
Shut down the system and turn off the power. NOTE: The system must support the power-off feature.
/NOLOGO
Turns off the splash screen.
/NOWINDOW
Hides the Timed ShutDown window
/NOCANCEL
Prevents user from canceling the shutdown. Takes Cancel button off the Timed ShutDown dialog box and disables the ESC key on splash screen.
/DONOTHING
This parameter does just that, nothing. This is helpful in some network situations where all users run ShutDown from some sort of central script. The admins and supervisors can have this parameter in their environment variable SHUTDOWN to bypass a time limit or a shutdown.


Notes:
If no parameters are specified, ShutDown will look for an environment variable called SHUTDOWN and use its value as parameters. If no parameters and no environment variable is found, ShutDown will shut down to a power-off state. Parameters can be combined for different effects. See the Examples below.

Pressing ESC while the splash screen is up will cancel the shutdown. The splash screen is up for approximately 4 seconds.

Tips/Tricks:
Running ShutDown without any command line parameters will just shut down to a power-off state. If you want a different type of shutdown, like a logoff or a complete reboot, you can add the command line parameters discussed above. In Windows 95, the best thing to do is to create a shortcut on your desktop. To change the command line parameters, right click to the Properties for the shortcut. Then click the Shortcut tab. Now you can add /REBOOT or /LOGOFF to the end of the Target line.


Examples:
ShutDown /LOGOFF /T:3
Wait three minutes, close all applications,
and log off the current user.

ShutDown /T:19:00
Shut down the computer at 19:00 hours (7:00 PM).

ShutDown /T:4:15 /RESTART
Restart Windows at 04:15 hours (4:15 AM).
Note that NT will log off while 95 will restart without
reboot.

ShutDown /MSDOS
Close all running programs and restart in MS-DOS mode. Type "exit" to get back to Windows 95.

ShutDown /RESTART /T:15 /F:C:\CLEAN.BAT
Wait fifteen minutes, run the batch file called
CLEAN.BAT, then restart Windows. Note that /F: is the last parameter.

ShutDown /FORCE /F:NOTEPAD.EXE SIGNOFF.TXT
Run Notepad, edit a file called SIGNOFF.TXT, and then do a forced shutdown. All unsaved data will be lost.

ShutDown /F:"D:\Things to do at end of session.bat" Run the "Things to do at end of session.bat" file and then shutdown.


Contact Information:
Chris Bluethman
2302 N. Star Drive
Stillwater, OK 74075

E-mail: shutdown@bluethman.com


Trademarks/Acknowledgments
Microsoft Office, Windows 95, Window 98, and Windows NT are products of Microsoft Corporation.



Top
#49035 - 2000-03-10 09:27 PM Re: win95 shutdown failure
Anonymous
Unregistered


On_Jon 3/10/2000
Hey I would keep posting my ideas here but as a 'junior member' I feel that Im not worthy.
Later its been fun. . .

;;=========================================

For Win9x try creating one liners and exiting to run at the end of the script. Need the properties set to 'close on exit' on program tab and uncheck 'warn if active, on misc tab.

to restart Windows
C:\WINDOWS\RUNDLL.EXE user.exe,exitwindows
-or- to shutdown
C:\WINDOWS\RUNDLL.EXE user.exe,exitwindowsexec

;;=========================================

Top
#49036 - 2000-03-10 09:32 PM Re: win95 shutdown failure
Anonymous
Unregistered


I forgot to mention to try this for messing up the mouse: Check 'exclusive mode' for mouse while your in the 'MISC' tab. But you probably would have noticed and tried that anyway. If this is invoked at the start of a windows session the mouse cursor doesn't even show up.
Top
#49037 - 2000-03-20 05:18 PM Re: win95 shutdown failure
Anonymous
Unregistered


Thank you to all who applied.
Info for others dealing with same problem,
kixtart one line strings do not work,and were
tried first.

Freeware that provided shutdown function solved the problem after setting enough time
for calling batch files to complete. A neat
sleep trip for DOS is to do a START /w dir of a directory, redirect to a file, and then
delete the file. You control the time out by the directory you are listing. Since IO is slower than RAM, you have a pseudo sleep comand.

Also thank On_Jon for clarification of mouse
option. This I am going to go back and add.


Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 194 anonymous users online.
Newest Members
BeeEm, min_seow, Audio, Hoschi, Comet
17882 Registered Users

Generated in 0.109 seconds in which 0.091 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org