|I have been using the code below to rename a folder character.|
The problem is the folder contains the "&" (Ampersand) I have used the caret ^ symbol in a part of the code to try and over come this problem.
for /f "tokens=* delims= " %%a in ('dir/b/s/ad ^| find "&"') do (
echo rename %%a !str!
The Code appears to have changed "&" to "x" when it is echoed back, although when you check the folder name, it was unsuccessful.
Is anyone able to help?