Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2014-12-30
3
Medium Priority
?
169 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 25

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 25

Expert Comment

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

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

Read about the ways of improving workplace communication.
Successful collaboration among team members is essential for the growth of your business. When employees work together on projects, share ideas and communicate effectively they get better results.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

963 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