ren cmd syntax error

Anonymous
2021-09-25T23:43:29+00:00

I get a syntax error when trying to globally rename the directories below; for example, to change the "x" to a number, e.g., "2," These directories are contained in a sub-directory within my Documents, and these directories have sub-directories inside of them.

The format of the command I've used (at the cmd prompt in the directory where these directories reside) is: ren "* *x" "* *2". I also tried: ren "* 202x" "* 2022" and get the same "The syntax of the command is incorrect" error.

Any help will be appreciated! Thank you.

Windows for home | Windows 10 | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2021-09-26T17:04:37+00:00

    Hi,

    Thank you for writing to Microsoft Community Forums.

    I understand that you’re facing issues when trying to rename directories as you receive syntax error.

    We do have a dedicated forum where you should find support. I would suggest you to post your query on Windows on Q&A, where we have support professionals with expertise to assist you with your query.

    Regards,

    Prakhar Khare

    Microsoft Community – Moderator

    0 comments No comments
  2. Anonymous
    2021-10-01T11:42:35+00:00

    Will do, thank you!

    0 comments No comments