Shadowspawn
[H]ard|Gawd
- Joined
- Sep 17, 2002
- Messages
- 1,870
Windows 7 Powershell.
I have a dir of files that look like this:
I want to make them look like this:
I want to do more to their names than that, but if I can do that much then I can figure out the rest.
I have tried this:
I receive an error per file saying it doesn't exist.
I think it is the square brackets but I am not sure how to resolve that problem.
Thanks in advance.
I have a dir of files that look like this:
Code:
[DBNL]Dragonball_Z_-_001_-_The_new_Threat_[DR][x264][F26CC67E]
I want to make them look like this:
Code:
Dragonball_Z_-_001_-_The_new_Threat_[DR][x264][F26CC67E]
I want to do more to their names than that, but if I can do that much then I can figure out the rest.
I have tried this:
Code:
dir | rename-item -newname { $_.name -replace "[DBNL]","" }
I receive an error per file saying it doesn't exist.
I think it is the square brackets but I am not sure how to resolve that problem.
Thanks in advance.