Solved

Batch file

Posted on 2006-07-01
2
283 Views
Last Modified: 2011-09-20
I just wrote this batch file to empty bad mail folder.  Never done batch files.  Where do I put in on the SMTP gateway.



Net stop smtpsvc
cd " c:\inetpub\mailroot”
Ren badmail badmailold
Md badmail
Net start smtpsvc
Move badmailold \\neptune\mail\badmailanalysis
0
Comment
Question by:mputnam31
[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 Comments
 
LVL 26

Assisted Solution

by:jar3817
jar3817 earned 250 total points
ID: 17026581
Doesn't really matter where you put it since you used absolute paths. As long as you don't move it once you schedule the job to run it at whatever interval.
0
 
LVL 29

Accepted Solution

by:
mass2612 earned 250 total points
ID: 17028238
jar3817 is correct. I normally create a folder on the root of the c:\ drive for these type of maintenance scripts called scripts and store and run them from there. That way we all know where to go looking if something is not working.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Spoofing email ? 45 986
outlook autocomplete 4 74
Setting up gmail and iPhone 6 3 56
migrate all email ands folders from Verizon account to Gmail 2 66
Pegasus Mail (http://www.pmail.com/) is a donation ware that is a collaboration of David Harris along with his team members. It is a desktop mail client that offers the option of configuring more than one mail account with single set up. It supports…
Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
The purpose of this video is to demonstrate how to set up a Mailchimp campaign. This will include styling and adding elements to a newsletter/email. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchim…
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…

751 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