Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 177
  • Last Modified:

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

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
TRTurner
Asked:
TRTurner
  • 2
1 Solution
 
NVITCommented:
In a CMD prompt or .bat file:
ren "*.out" "*.mon"

Open in new window

0
 
TRTurnerAuthor Commented:
Thanks
0
 
NVITCommented:
You're welcome, TRTurner. Have a Happy New Year.
0

Featured Post

Technology Partners: 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!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now