Solved

restart .cmd script w/ unexpected loop

Posted on 2007-04-02
3
412 Views
Last Modified: 2011-10-03
Hello,  I have an SBS 2003 server.   Occasionally I need to remotely restart or shutdown the server.   For restarting I put together a .cmd file with the following line...

shutdown -r -c "scheduled reboot" -d p:1:1

In the past, this has worked great for me, but recently when I double click the Icon, the command window opens and appears to print this line to the window in an endless loop.  

Any Ideas on whats happening?


0
Comment
Question by:gShipon
[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
  • 2
3 Comments
 
LVL 67

Accepted Solution

by:
sirbounty earned 250 total points
ID: 18841145
Did you name the cmd file 'shutdown.cmd'?
If so, that's the problem...name it as SysShutdown.cmd or something that's not already taken... ;^)
0
 

Author Comment

by:gShipon
ID: 18841175
wow -- that was it.   nice...
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 18841178
Happy to help! :^)
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Small Business Server 2011. NOTE: This guide has been written using the preview version of SBS2011 therefore some of the screens may …
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

628 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