BATCH: rename a file in a folder

Maskass Posted messages 17 Registration date   Status Member Last intervention   -  
Maskass Posted messages 17 Registration date   Status Member Last intervention   -
Hello, I'm looking for a BATCH command that would allow me to rename a file in the folder c:\windows\system32 but after a lot of searching online, I only found out how to rename a file in my personal folder!
Can someone please help me? I'm not very familiar with batch! Thank you! (:

2 answers

Anonymous user
 
Hello,

tested on XP: renaming a.txt to b.txt - pause to see that everything went well.

cd c:\windows\system32
ren a.txt b.txt
pause

After that, we can refine with echo off, etc.
3