Solved

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

Posted on 2014-12-30
3
131 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
[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 24

Accepted Solution

by:
NVIT earned 500 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 24

Expert Comment

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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Question has a verified solution.

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

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
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 …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

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