Avatar billede fatter_keine Nybegynder
21. juni 2004 - 00:46 Der er 3 kommentarer og
1 løsning

Luk Windows 95, 98, NT, ME, 2000, XP

Hvad er kommandoerne for at "Lukke, Genstarte osv... " - de forskellige Windows operativsystemer ?
Avatar billede koden12 Nybegynder
21. juni 2004 - 01:00 #1
shutdown
Parameter evt

koden12
Avatar billede morphman Nybegynder
21. juni 2004 - 01:01 #2
Enter this command line:
rundll32 user.exe,exitwindows
..to exit Windows easily,

rundll32 user.exe,ExitWindowsExec
..to restart Windows,

rundll32 shell32.dll,SHExitWindowsEx 2
..to reboot the computer, and..

rundll32 shell32.dll,SHExitWindowsEx
..to log off the current user (without the confirmation question).
Those are for 9x (95, 98, Me). XP has shutdown.exe, also available in NT and 2k resource kits:
%windir%\system32\shutdown.exe -r
would be a reboot. Some useful attributes:
-r = shuts down and restarts;
-f = forces processes to terminate;
-l = shuts down all running processes, then logs off;
-s = shuts down to a point at which it is safe to turn off power;
-h = help.

Also note the "-t xx" attribute. Default shutdown has a countdown of 30 seconds, with this you can change that ("-t 00" being zero).
Undefined adds that XP also has "tsshutdn 0 /POWERDOWN" to put in target field for a shutdown and mentioned kill.exe. This tool is provided with 2k (tools dir on the cd), and "will kill every task running without warning, so it probably harms your system in some way or another. Don't do it unless you absolutely have to." Freely available online.
Avatar billede morphman Nybegynder
21. juni 2004 - 01:12 #4
Perhaps ye'll like this. I mean sice ye posted under the 'Delphi' section.

http://www.swissdelphicenter.ch/en/showcode.php?id=168
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester



IT-JOB

Udviklings- og Forenklingsstyrelsen

Generalist til PMO

Cognizant Technology Solutions Denmark ApS

Test Architect - Projects