Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Shutdown Command  (Read 10990 times)

0 Members and 1 Guest are viewing this topic.

Sharamall

  • Guest
Shutdown Command
« on: October 21, 2007, 01:23:32 PM »
I know he command and syntax of the shutdown command for Windows XP and I read the article on how to do the same thing on earlier versions of DOS but it didn't include Windows 2000. Is there a way to initiate a shutdown sequence from a batch file on 2000?

Dusty



    Egghead

  • I could if she would, but she won't so I don't.
  • Thanked: 75
  • Experience: Beginner
  • OS: Windows XP
Re: Shutdown Command
« Reply #1 on: October 21, 2007, 02:24:11 PM »
Win 2k seems to need the Resource Kit.  See here.
One good deed is worth more than a year of good intentions.

Broni


    Mastermind
  • Kraków my love :)
  • Thanked: 614
    • Computer Help Forum
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 8

Sharamall

  • Guest
Re: Shutdown Command
« Reply #3 on: October 21, 2007, 04:59:17 PM »
Well, I don't know what the resource kit is (I'm 14)

The syntax on the site on the post above me didn't work. CMD did a repeating thing. It displayed the command and just kept repeating it without performing the operation. Any solution?

Broni


    Mastermind
  • Kraków my love :)
  • Thanked: 614
    • Computer Help Forum
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 8
Re: Shutdown Command
« Reply #4 on: October 21, 2007, 05:28:45 PM »
You have to download "Remote Shutdown" tool first:
http://www.petri.co.il/download_free_reskit_tools.htm
Scroll down to:
 
Quote
ShutDown: Remote Shutdown - Remote Shutdown is a command-line tool that allows you to remotely shut down or reboot a computer running Windows 2000.
Then use syntax from a link from my previous post.

Sharamall

  • Guest
Re: Shutdown Command
« Reply #5 on: October 21, 2007, 06:10:42 PM »
Then would this be the syntax?

C:\Documents and Settings\sharmall\Desktop\shutdown\shutdown.exe -s -t 900

Broni


    Mastermind
  • Kraków my love :)
  • Thanked: 614
    • Computer Help Forum
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 8
Re: Shutdown Command
« Reply #6 on: October 21, 2007, 07:06:31 PM »
No...
shutdown.exe doesn't have any of switches, you used.

Do you want to have a batch file, which will just simply shut down your local computer, or you want to add some switches?
What EXACTLY do you want that batch file to do?

Sharamall

  • Guest
Re: Shutdown Command
« Reply #7 on: October 21, 2007, 07:09:27 PM »
Sorry for not specifying, I want a batch file that shuts down the computer in a certain amount of time. i know how to do it on XP but not on 2k.

Broni


    Mastermind
  • Kraków my love :)
  • Thanked: 614
    • Computer Help Forum
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 8
Re: Shutdown Command
« Reply #8 on: October 21, 2007, 07:46:28 PM »
The syntax would be:
C:\Documents and Settings\sharmall\Desktop\shutdown\shutdown.exe /l /t:300 "The computer is shutting down" /y /c
l (lower case letter "l") - local computer
t:300 - in 5 minutes
y - "yes" to all computer questions
c - quit all running programs

Save the above line as a batch file, and you're done.

P. S. I'm not an expert here, but it should work. If I'm incorrect, please, someone chime in.

Sharamall

  • Guest
Re: Shutdown Command
« Reply #9 on: October 21, 2007, 08:01:33 PM »
I do believe that that is the syntax but the path is incorrect. Isn't there a seven character limit that applies in DOS? And you can't use any spaces? Because it returns:

"C:/Documents" is not recognized as an internal or external command, operable program or batch file.

ghostdog74



    Specialist

    Thanked: 27
    Re: Shutdown Command
    « Reply #10 on: October 21, 2007, 08:12:17 PM »
    I do believe that that is the syntax but the path is incorrect. Isn't there a seven character limit that applies in DOS? And you can't use any spaces? Because it returns:

    "C:/Documents" is not recognized as an internal or external command, operable program or batch file.
    you are 14 and an administrator? if not, you should stop what you are doing and concentrate on your studies.

    Sharamall

    • Guest
    Re: Shutdown Command
    « Reply #11 on: October 21, 2007, 08:14:38 PM »
    What are you talking about? You don't have to be an administrator to access DOS.

    Broni


      Mastermind
    • Kraków my love :)
    • Thanked: 614
      • Computer Help Forum
    • Computer: Specs
    • Experience: Experienced
    • OS: Windows 8
    Re: Shutdown Command
    « Reply #12 on: October 21, 2007, 08:18:28 PM »
    Quote
    Isn't there a seven character limit that applies in DOS?
    Good question, but I believe, it doesn't apply to Win 2K, and later. Those Windows don't use real DOS. If I remember correctly, I was able to execute commands from Command Prompt under Win 2K, which didn't follow "7.3" rule.
    I'm too lazy to turn my 2K on, now, so I'll wait for you to try it....LOL

    Broni


      Mastermind
    • Kraków my love :)
    • Thanked: 614
      • Computer Help Forum
    • Computer: Specs
    • Experience: Experienced
    • OS: Windows 8
    Re: Shutdown Command
    « Reply #13 on: October 21, 2007, 08:25:50 PM »
    "7.3" rule doesn't matter in Vista's Command Prompt:


    patio

    • Moderator


    • Genius
    • Maud' Dib
    • Thanked: 1769
      • Yes
    • Experience: Beginner
    • OS: Windows 7
    Re: Shutdown Command
    « Reply #14 on: October 21, 2007, 09:06:14 PM »
    Someone is confusing command prompt with DOS again...
    I wish i had a quarter for every time that happened here...i could retire.
    " Anyone who goes to a psychiatrist should have his head examined. "