Solved

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

Posted on 2014-12-30
3
108 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 23

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 23

Expert Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

932 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

10 Experts available now in Live!

Get 1:1 Help Now