I wrote a simple
.bat file that appends the string
"somethingnew" infront of
for %%x in (*.txt) do ren "%%x" "somethingnew%%~nx"
But when I run it from the command prompt (or when I double click it) it does nothing.
I found this post but there is no item called "UserChoice" in the registry and I checked that the
.bat association is correct.
EDIT: Also, I've noticed that when I double click the file, the command prompt opens for a split second and then closes, and when I try to run the file through the command prompt, it runs but does nothing.