Solved

Batch File commands

Posted on 2008-06-20
5
230 Views
Last Modified: 2010-04-16
I want to shutdown a bunch of servers.  So I run the shutdown command, but it issues the command, and then waits for a response.
I would like the batch file to issue the shutdown command, and continue down the list without waiting, how do I do this?
0
Comment
Question by:loftyworm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 14

Expert Comment

by:Kutyi
ID: 21835264
0
 
LVL 38

Accepted Solution

by:
Shift-3 earned 500 total points
ID: 21835319
Try prefacing each SHUTDOWN command with START.  This will allow the script to continue without waiting for the command to complete.
http://www.ss64.com/nt/start.html
0
 
LVL 3

Expert Comment

by:DarrenMcCall
ID: 21835323
You could write a script in AutoIt (or AutoHotKey)
Run("shutdown -s -m \\RemotePC1")
Run("shutdown -s -m \\RemotePC2")

Open in new window

0
 
LVL 11

Author Comment

by:loftyworm
ID: 21835346
@kutyi
Very nice command, I will have to remember that one when I write my next script, but sry, that was not the question.
@shift-3
exactly was I was looking for, ty :)
0
 
LVL 14

Expert Comment

by:Kutyi
ID: 21835377
No need to say sry, you asked the question and you get to pick your solution!  Glad you got it working!.....:)
0

Featured Post

Stressed Out?

Watch some penguins on the livecam!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Remote Apps is a feature in server 2008 which allows users to run applications off Remote Desktop Servers without having to log into them to run the applications.  The user can either have a desktop shortcut installed or go through the web portal to…
You may have already been in the need to update a whole folder stucture using a script. Robocopy does it well and even provides a list of non-updated files in a log (if asked to). Generally those files that were locked by a user or a process by the …
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question