Solved

restart .cmd script w/ unexpected loop

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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

The SBS 2011 release date (RTM) is supposed to be around Christmas, 2011.  This article is a compilation of my notes -- things I have learned first hand.  The items are in a rather random order, but I think this list covers most of what is new and d…
The problem of the system drive in SBS 2003 getting full continues to be an issue, even though SBS 2008 and SBS 2011 are both in the market place.  There are several solutions to this, including adding additional drive space or using third party uti…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

861 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

24 Experts available now in Live!

Get 1:1 Help Now