I never meant to start a little war, I just wanted to rename some files. My thanks to all who provided input. I'm no hippy, but I hope there is peace in 2010, be it here on this forum and worldwide.
Now, back to my original issue. I've been working with the solution provided first (thanks to Salmon Trout and Helpmeh). As I "get" some of the coding, I've been able to follow/understand it a bit better. Yes I want to rename these files, but I also want to learn a skill that I can apply to other situations in the future. The additional elucidation on the meaning of each element of the code has been infinitely useful (please keep it coming).
Still, I'm missing something clearly. I took a three files as a test, and put them into a folder;
File_1_test.txt
File_2_test_.txt
_File_3_test.txt
all now reside in C:/test
In the end, I want the files to be named:
File 1 test.txt
File 2 test.txt
File 3 test.txt
I'm using WinXP, so I used the DOS emulator and navigated to the folder (C:/test). I then typed in the code provided, all in one big long line of input text to the emulator (if I hit enter to mimic the carriage returns in the code provided, it would execute the code only partially or not at all).
i.e., I literally typed in
"setlocal enabledelayedexpansion for /f "delims=" %%A in (*.txt) do (set oldname=%%A set newname=!oldname:_= ! ren "!oldname!" "!newname!")"
Then I hit enter.
It didn't crap out per se, but it didn't actually do anything. The filenames remain unchanged.
Take a second to roll your eyes at my ignorance as needed, then please enlightened me if you're willing and able.
My thanks to all,