Improve company productivity with a Business Account.Sign Up

x
?
Solved

Change all the files in a directory from .OUT to .MON

Posted on 2014-12-30
3
Medium Priority
?
191 Views
Last Modified: 2015-01-03
Hi,

I'm looking to build a bat files that will rename all the files in a select folder with the extension *.OUT to *.MON

My task is to take all the data files given to me. Search for any files with a .OUT extension and rename that file to a .MON extension. I'm sure this can be scripted I just don't know how.

Thank you,
0
Comment
Question by:TRTurner
  • 2
3 Comments
 
LVL 26

Accepted Solution

by:
NVIT earned 2000 total points
ID: 40524700
In a CMD prompt or .bat file:
ren "*.out" "*.mon"

Open in new window

0
 
LVL 6

Author Closing Comment

by:TRTurner
ID: 40529314
Thanks
0
 
LVL 26

Expert Comment

by:NVIT
ID: 40529579
You're welcome, TRTurner. Have a Happy New Year.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Starting a business requires forethought, planning and preparation. As eager as you are to get started with business activities, you need to walk through a few important steps to ensure that your business gets off on the right foot.
AngularJS web development a very simple procedure. So, to put it, in short, AngularJS’ stand out features are – Two-way data binding, MVC structure, directives, templates, dependency injections and testing.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Integration Management Part 2

601 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