Solved

Batch File commands

Posted on 2008-06-20
5
223 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
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Know what services you can and cannot, should and should not combine on your server.
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…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

867 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now