-
December 2nd, 2013, 02:46 PM
#1
Adding characters to mulitple files at once
Hi. Some time ago, I asked for a batch rename tool, to batch rename files in a folder. After some assistance, I wound up with:
Dir | rename-item -newname { $_.name -replace "wet","dry" }
In Win powershell.
Now, I am looking for a way to add characters. So, let's say in a folder I have:
1.wav
2.wav
3.wav
and I want to wind up with:
JH1.wav
JH2.wav
JH3.wav
- what's the best way to do this? I tried substituting -rename with -add, and playing around with the text in the curly brackets, but to no avail. Any ideas?
Thanks in advance.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|