TonalDev
TonalDev

Reputation: 583

Batch script to rename and move files

I have a radio management system which is capable of running batch scripts after shows.

I'm looking for a batch script file that renames any file in the directory like so:

1.mp3 --> [Replay]1.mp3

And then move the file from folder a to folder b.

Any thoughts on how do i go about creating such script in a syntax level?

Upvotes: 0

Views: 2836

Answers (2)

Carlos S.
Carlos S.

Reputation: 11

There are many ways to do what you request, this script does that by searching all mp3 files in the current folder and move them to folderb specifying a new name.

@ECHO off

FOR %%i IN (*.mp3) DO (
  MOVE "%%i" "folderb\[Replay]%%i"
)

Upvotes: 0

Bali C
Bali C

Reputation: 31251

Here you go

ren *.mp3 [Replay]*.*

Upvotes: 2

Related Questions