Solved

Batch file

Posted on 2006-07-01
2
282 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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

I didn’t use eM Client for long when I decided to swap to Outlook 2016. The reason for the switch is that it started asking for payment to continue some of its services after one month.   The problems I faced when I didn’t pay were:   I was not …
This is my first article on Expert Exchange on the Manual Method of Exporting Office 365 Mailboxes to PST format by using the eDiscovery mechanism of Office. Hope you will enjoy the article.
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…

749 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