.bat 文件为当前用户重命名目标文件夹

.bat file to rename targeted folder for current user

是否可以通过 Windows 批处理脚本为当前登录的用户重命名特定文件夹?

我正在寻找重命名

C:\Users\current account name\AppData\Local\example name

example name.old

只需使用LOCALAPPDATA环境变量:

ren "%LOCALAPPDATA%\example name" "xample name.old"