- 将下面的内容命名为 mv.bat 保存到D盘。
@echo off
robocopy "C:\\Users" "D:\\Users" /E /COPYALL /XJ /XD WindowsApps
rmdir "C:\\Users" /S /Q
mklink /J "C:\\Users" "D:\\Users"
- 开始运行或徽标+R, 执行下面的命令重启到恢复界面
shutdown -O -r -t 0
- 进入疑难问题菜单-命令提示符, 执行下面的命令即可
D:\mv.bat
@echo off
robocopy "C:\\Users" "D:\\Users" /E /COPYALL /XJ /XD WindowsApps
rmdir "C:\\Users" /S /Q
mklink /J "C:\\Users" "D:\\Users"
shutdown -O -r -t 0
D:\mv.bat