Prepending to filenames

Caporegime
Joined
18 Oct 2002
Posts
25,287
Location
Lake District
I need to prepend a three letter to prefix to 1529 files, anyone any idea's how I might be able to batch this?
 
Fire up a command window and navigate to where the files are then:

Code:
for %f in (*.*) do copy %f [B]prefix[/B]%f

Substitute the bit in bold with the prefix you want. You could use move instead of copy but that means getting it right first time.

If you want to put that into a batch file then you'll need to use %%f rather than %f.
 
Back
Top Bottom