Hi
Welcome to Microsoft community.
It looks like you're on the right track, but the command you're using isn't preserving the unique alphanumeric sequences in each file name. The 'ren' command in Windows doesn't support wildcards in the replacement text, which is why the unique sequences are being removed.
Instead, you can use a 'for' loop with the 'ren' command to rename each file individually while preserving the unique sequences. Here's how you can do it:
for %A in (WI*.*) do ren "%A" "Windsor%~nxA"
This command works as follows:
-
for %A in (WI*.*) doThis part of the command loops through each file in the current directory that starts with 'WI' and has any extension. -
ren "%A" "Windsor%~nxA"This part of the command renames each file, replacing 'WI' with 'Windsor' and preserving the rest of the original file name and extension. -
%~nxAThis is a special variable that represents the name and extension of the current file in the loop.
Please note that you should run this command in the directory where the files you want to rename are located. Also, please ensure to back up your files before running this command, as renaming operations can't be undone.
Please feel free to let me know if you have any further updates, thanks.
Best regards
Derrick Qian | Microsoft Community Support Specialist