Solved

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

Posted on 2014-12-30
3
144 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 25

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 25

Expert Comment

by:NVIT
ID: 40529579
You're welcome, TRTurner. Have a Happy New Year.
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

"Disruption" is the most feared word for C-level executives these days. They agonize over their industry being disturbed by another player - most likely by startups.
Read about the ways of improving workplace communication.
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…
Progress
Suggested Courses

627 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