Solved

Batch File commands

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
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…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

760 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

20 Experts available now in Live!

Get 1:1 Help Now