Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

restart .cmd script w/ unexpected loop

Posted on 2007-04-02
3
Medium Priority
?
414 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 1000 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

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…
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

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