Solved

Batch File commands

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

Office 365 Training for IT Pros

Learn how to provision Office 365 tenants, synchronize your on-premise Active Directory, and implement Single Sign-On.

Question has a verified solution.

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

Suggested Solutions

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…
Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

738 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