Restart from command line?

Discussion in 'Windows Desktop Systems' started by chjones, May 26, 2002.

  1. chjones

    chjones Guest

    Anyone know a decent command-line restart method? I tried a program called KillWin with somewhat negative results. Here's what I'd like to do:

    I'm making a scheduled task to chkdsk drive c:; the problem is that when yo want to check your system drive, it will only allow you to do it on reboot. Fine---there's no reason not to. I just need to reboot in the script/batch.

    Yes, I know there are scandisk utilities that can do it while booted, handle the scheduling, etc.; I need to do this as close to "in the box" as possible. Thanks....
  2. singwei

    singwei Guest

    you can try this:
    shutdown -r -t xx

    -r = restart
    -t xx = set timeout for shutdown to xx seconds

    you also can type "shutdown" in command prompt to view the various option provided by shutdown command.
  3. chjones

    chjones Guest

    Thanks! Exactly what I needed....