Windows XP: how do I add
00 in front of every file via command prompt?
I tried REN * 00*.gif but it doesn't work.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
If you really want to rename everything:
for %a in (*.*) do ren %a 00%a
If you only want to rename .gif files:
for %a in (*.gif) do ren %a 00%a
If you need to add the prefix to file names with spaces in them put quotes around the %a and 00%a at the end of the line, i.e.
for %a in (*.*) do ren "%a" "00%a"