I have a batch file that's supposed to rename every file in a directory, but it keeps renaming itself and then won't continue with the script afterwards.
for /r %%b in (*) do (
ren %%b !random!
)
The question could be a clone of this one but even after reading this in combination with this, I still can't figure it out.
Either I'm dumb and the answer is really simple, or it's because I'm tired and I can't think straight.