Solved

restart .cmd script w/ unexpected loop

Posted on 2007-04-02
3
393 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
  • 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

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

I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
You may have discovered the 'Compatibility View Settings' workaround for making your SBS 2008 Remote Web Workplace 'connect to a computer' section stops 'working around' after a Windows 10 client upgrade.  That can be fixed so it 'works around' agai…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

705 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