Solved

Batch file

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction Ever had certain email messages or responses that you find yourself using over and over again? Do you use Google's Gmail system? If so, then this article is here to help you save time by teaching you how to create email templates from …
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
This Micro Tutorial will demonstrate the easy use of Gmail embedding images in your email so the recipient of your email can view them in context.
In this Experts Exchange video Micro Tutorial, I'm going to show how small business owners who use Google Apps can save money by setting up what is called a catch-all email address in their Gmail accounts. By using the catch-all feature, small busin…

707 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

14 Experts available now in Live!

Get 1:1 Help Now