Newsgroup: it.comp.os.win.win9x
Titolo: Come forzare lo spegnimento di Win98

Ciao a tutto il NG,
volevo chiedervi: per 
forzare ad ogni costo lo spegnimento
del PC con win98 che comando devo dare?
(utilizzo già rundll32.exe user,exitwindows
 però se ci sono utenti collegati al PC non si spegne di brutto
 ma comincia a fare domande)
Grazie
  Franco
-- 
Posted from 
ve1-230.dialup.tiscalinet.it
 [62.10.51.230] 
via Mailgate.ORG Server - 
http://www.Mailgate.ORG


La funzione:   rundll32 krnl386.exe, exitkernel
ATTENZIONE: è una delle possibilità più radicali per uscire da Windows.
 Non viene richiesta conferma in caso di dati non salvati e non viene
presentato alcun avviso in caso di file condivisi in rete,   neanche qualora
questi siano aperti!
Walter

 Walter
Grazie per la risposta,
però certe volte si spegne e certe volte mi
lascia il logo di Win98 e il PC rimane acceso
Franco
-- 
Posted from 
ve1-426.dialup.tiscalinet.it
 [62.10.52.170] 


 Posted from 
ve1-426.dialup.tiscalinet.it
 [62.10.52.170]


 lascia il logo di Win98 e il PC rimane acceso
Leggi il seguente articolo della Knowledge Base (da notare che i
valori di n sono addizionabili):
http://support.microsoft.com/directory/article.asp?ID=KB;EN-US;q234216
How to Exit Windows 98/Me Automatically Using a Batch File
==========================================
The information in this article applies to:
  a.. Microsoft Windows Millennium Edition
  b.. Microsoft Windows 98
----------------------------------------------------------------
SUMMARY
This article describes commands that you can use to create a batch
file that automatically restarts Windows 98 or Windows Millennium
Edition (Me).
MORE INFORMATION
You can use either of the following commands in a batch file to
restart Windows 98/Me automatically:
  a.. runonce.exe -q
  b.. rundll32.exe shell32.dll,SHExitWindowsEx n
where n is one, or a combination of, the following numbers:
  a.. 0 - LOGOFF
  b.. 1 - SHUTDOWN
  c.. 2 - REBOOT
  d.. 4 - FORCE
  e.. 8 - POWEROFF
The above options can be combined into one value to achieve different
results. For example, to restart Windows forcefully, without querying
any running programs, use the following command line:
  rundll32.exe shell32.dll,SHExitWindowsEx 6
NOTE : Using the FORCE option can cause programs to lose data.
Below is an explanation of each available option used with the above
command line:
  a.. LOGOFF - Shuts down all running processes, then logs the user
off.
  b.. POWEROFF - Shuts down the system and turns off the power. The sy
stem must support the power-off feature.
  c.. REBOOT - Shuts down the system and then restarts the system.
  d.. SHUTDOWN - Shuts down the system to a point at which it is safe
to turn off the power. All file buffers have been flushed to disk, and
all running processes have stopped.
  e.. FORCE - Forces processes to terminate. When this flag is set,
Windows does not query running applications to inform them that
Windows is shutting down. This can cause the applications to lose
data, therefore, you should only use this flag in an emergency.
The "rundll32.exe shell32.dll,SHExitWindowsEx (n)" command mentioned
above can be called from the RunOnce registry key.
The runonce.exe -q command mentioned above restarts the computer after
a 15 second delay. There are no other options when using this command
line, and it cannot be called from the RunOnce registry key.
For additional information about the RunOnce registry key, please see
the following article in the Microsoft Knowledge Base:
  Q137367 Definition of the RunOnce Keys in the Registry
Ciao,
Pamela