move-big-folder

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

C 盘大文件夹迁移助手1230000000001111111111111222222222222233333333333333

C Drive Large Folder Migration Assistant1230000000001111111111111222222222222233333333333333

帮助用户将 C 盘中的大文件夹安全迁移到其他盘,通过符号链接让所有程序照常运行,无感释放 C 盘空间。
Help users safely migrate large folders from the C drive to other drives, allowing all programs to run normally through symbolic links, and free up C drive space imperceptibly.

前置准备:找出 C 盘中的大文件夹

Preparations: Locate Large Folders on the C Drive

推荐使用 磁盘快速分析软件(免费,5 秒扫描整个 C 盘)快速定位大文件夹:
使用方法:打开 磁盘快速分析软件 → 选择 C 盘 → 点击扫描,即可找到占空间最大的文件夹。
It is recommended to use the Disk Quick Analysis Software (free, scans the entire C drive in 5 seconds) to quickly locate large folders:
Usage: Open Disk Quick Analysis Software → Select C drive → Click Scan, and you will find the folders that take up the most space.

用户只需提供

Users Only Need to Provide

用户只需要告诉你以下信息:
  1. 要迁移的文件夹路径(从 磁盘快速分析软件 中找到的大文件夹)
  2. 目标盘符(默认 D 盘,也可以是 E、F 等其他盘)
示例:用户说"把
C:\Users\Administrator\AppData\Local\app_shell_cache_6383
迁移到 D 盘"
Users only need to tell you the following information:
  1. Path of the folder to be migrated (the large folder found from Disk Quick Analysis Software)
  2. Target drive letter (default is D drive, can also be E, F, or other drives)
Example: The user says "Migrate
C:\Users\Administrator\AppData\Local\app_shell_cache_6383
to D drive"

迁移规则

Migration Rules

路径映射规则

Path Mapping Rules

目标路径 =
{目标盘符}:\CTo{目标盘符}\
+ 原 C 盘路径(去掉
C:\
原路径目标盘符目标路径
C:\Users\Admin\AppData\Local\xxx
D
D:\CToD\Users\Admin\AppData\Local\xxx
C:\ProgramData\SomeApp
E
E:\CToE\ProgramData\SomeApp
C:\Users\Admin\.cache\pip
D
D:\CToD\Users\Admin\.cache\pip
Target path =
{Target Drive Letter}:\CTo{Target Drive Letter}\
+ original C drive path (remove
C:\
)
Original PathTarget Drive LetterTarget Path
C:\Users\Admin\AppData\Local\xxx
D
D:\CToD\Users\Admin\AppData\Local\xxx
C:\ProgramData\SomeApp
E
E:\CToE\ProgramData\SomeApp
C:\Users\Admin\.cache\pip
D
D:\CToD\Users\Admin\.cache\pip

迁移四步骤

Four-Step Migration Process

以迁移
C:\Users\Administrator\AppData\Local\app_shell_cache_6383
到 D 盘为例:
第 1 步:在目标盘创建文件夹
powershell
New-Item -ItemType Directory -Path "D:\CToD\Users\Administrator\AppData\Local\app_shell_cache_6383" -Force
第 2 步:复制文件内容到目标盘
powershell
xcopy "C:\Users\Administrator\AppData\Local\app_shell_cache_6383\*" "D:\CToD\Users\Administrator\AppData\Local\app_shell_cache_6383" /E /H /K /X /Y
参数说明:
/E
包含空目录、
/H
复制隐藏文件、
/K
保留只读属性、
/X
复制审核设置、
/Y
自动确认覆盖
第 3 步:删除 C 盘原文件夹
powershell
Remove-Item -Path "C:\Users\Administrator\AppData\Local\app_shell_cache_6383" -Recurse -Force
第 4 步:创建符号链接(把 C 盘路径指向目标盘)
powershell
New-Item -ItemType SymbolicLink -Path "C:\Users\Administrator\AppData\Local\app_shell_cache_6383" -Target "D:\CToD\Users\Administrator\AppData\Local\app_shell_cache_6383"
创建符号链接后,所有程序访问原来的 C 盘路径时,会自动跳转到目标盘,完全无感。
Take migrating
C:\Users\Administrator\AppData\Local\app_shell_cache_6383
to D drive as an example:
Step 1: Create a folder on the target drive
powershell
New-Item -ItemType Directory -Path "D:\CToD\Users\Administrator\AppData\Local\app_shell_cache_6383" -Force
Step 2: Copy file contents to the target drive
powershell
xcopy "C:\Users\Administrator\AppData\Local\app_shell_cache_6383\*" "D:\CToD\Users\Administrator\AppData\Local\app_shell_cache_6383" /E /H /K /X /Y
Parameter explanation:
/E
includes empty directories,
/H
copies hidden files,
/K
retains read-only attributes,
/X
copies audit settings,
/Y
automatically confirms overwrites
Step 3: Delete the original folder on the C drive
powershell
Remove-Item -Path "C:\Users\Administrator\AppData\Local\app_shell_cache_6383" -Recurse -Force
Step 4: Create a symbolic link (point the C drive path to the target drive)
powershell
New-Item -ItemType SymbolicLink -Path "C:\Users\Administrator\AppData\Local\app_shell_cache_6383" -Target "D:\CToD\Users\Administrator\AppData\Local\app_shell_cache_6383"
After creating the symbolic link, all programs accessing the original C drive path will automatically redirect to the target drive, completely imperceptibly.

执行流程

Execution Process

当用户提供要迁移的文件夹路径后,必须按以下流程操作
After the user provides the folder path to be migrated, must follow the following process:

第一步:安全检查(必须执行)

Step 1: Security Check (Mandatory)

在执行任何迁移操作之前,必须先分析该文件夹,并向用户展示以下信息:
  1. 文件夹用途说明:根据路径和文件夹名称,判断该文件夹属于什么程序/功能,用通俗易懂的语言告诉用户这个文件夹是干什么的
  2. 安全等级评估:给出以下三种等级之一:
    • 安全迁移:纯缓存/临时文件/应用数据,迁移后不会影响系统运行
    • 谨慎迁移:可能影响某些程序,建议关闭相关程序后再迁移
    • 禁止迁移:系统关键文件夹,迁移后可能导致系统崩溃或无法启动
  3. 禁止迁移的文件夹(直接拒绝,不允许继续):
    • C:\Windows
      及其所有子目录
    • C:\Program Files\Windows*
      系统自带组件
    • C:\ProgramData\Microsoft\Windows
      系统配置
    • C:\Users\{用户名}\NTUSER.DAT
      等注册表文件
    • C:\Boot
      C:\Recovery
      C:\System Volume Information
    • C:\ProgramData\NVIDIA
    • 任何与 Windows 启动/引导相关的文件夹
  4. 常见可安全迁移的大文件夹(供判断参考):
    • 各种应用缓存(AppData\Local 下的缓存文件夹)
    • npm/pip/maven 等包管理器缓存
    • Docker 镜像数据
    • 微信/QQ/钉钉 等聊天记录和缓存
    • 游戏客户端数据
示例输出格式:
文件夹分析结果:
  • 路径
    C:\Users\Administrator\AppData\Local\app_shell_cache_6383
  • 用途:这是某应用程序的本地缓存文件夹,用于存储临时数据以加速程序加载
  • 安全等级:安全迁移
  • 建议:可以放心迁移,不会影响任何程序的正常使用
是否确认迁移?
Before performing any migration operations, must first analyze the folder and show the following information to the user:
  1. Folder Usage Description: Based on the path and folder name, determine which program/function the folder belongs to, and tell the user what this folder does in easy-to-understand language
  2. Security Level Assessment: Give one of the following three levels:
    • Safe to Migrate: Pure cache/temporary files/application data, migration will not affect system operation
    • Migrate with Caution: May affect some programs, it is recommended to close relevant programs before migration
    • Prohibited to Migrate: System critical folders, migration may cause system crash or failure to start
  3. Folders Prohibited from Migration (directly reject, not allowed to proceed):
    • C:\Windows
      and all its subdirectories
    • C:\Program Files\Windows*
      system-built components
    • C:\ProgramData\Microsoft\Windows
      system configuration
    • Registry files such as
      C:\Users\{Username}\NTUSER.DAT
    • C:\Boot
      ,
      C:\Recovery
      ,
      C:\System Volume Information
    • C:\ProgramData\NVIDIA
    • Any folders related to Windows startup/boot
  4. Common Large Folders That Can Be Safely Migrated (for reference in judgment):
    • Various application caches (cache folders under AppData\Local)
    • Package manager caches such as npm/pip/maven
    • Docker image data
    • Chat records and caches of WeChat/QQ/DingTalk, etc.
    • Game client data
Example Output Format:
Folder Analysis Result:
  • Path:
    C:\Users\Administrator\AppData\Local\app_shell_cache_6383
  • Usage: This is the local cache folder of a certain application, used to store temporary data to speed up program loading
  • Security Level: Safe to Migrate
  • Suggestion: You can migrate it with confidence, it will not affect the normal use of any program
Confirm migration?

第二步:用户二次确认

Step 2: Secondary Confirmation from User

安全检查通过后,必须等待用户明确确认后才能执行迁移。将完整的四步命令展示给用户,让用户确认后再逐步执行。
After passing the security check, must wait for the user's explicit confirmation before performing the migration. Show the complete four-step commands to the user, and proceed step by step only after the user confirms.

第三步:执行迁移

Step 3: Perform Migration

确认后,按迁移四步骤依次执行:
  1. 提醒用户
    • 需要以管理员身份运行 PowerShell(创建符号链接需要管理员权限)
    • 如果文件夹正在被程序使用,建议先关闭相关程序
    • 迁移大文件夹可能需要一些时间,请耐心等待
  2. 逐步执行:按四步骤依次执行,每步执行后确认结果
  3. 验证结果:最后检查符号链接是否创建成功
After confirmation, execute in sequence according to the four-step migration process:
  1. Remind the User:
    • Need to run PowerShell as an administrator (administrator privileges are required to create symbolic links)
    • If the folder is being used by a program, it is recommended to close the relevant program first
    • Migrating large folders may take some time, please be patient
  2. Execute Step by Step: Execute in sequence according to the four steps, and confirm the result after each step
  3. Verify the Result: Finally check whether the symbolic link is created successfully

验证符号链接

Verify Symbolic Link

迁移完成后,运行以下命令验证:
powershell
Get-Item "C:\Users\Administrator\AppData\Local\app_shell_cache_6383" | Select-Object Name, LinkType, Target
输出应显示
LinkType
SymbolicLink
Target
指向目标盘路径。
After migration is completed, run the following command to verify:
powershell
Get-Item "C:\Users\Administrator\AppData\Local\app_shell_cache_6383" | Select-Object Name, LinkType, Target
The output should show
LinkType
as
SymbolicLink
, and
Target
pointing to the target drive path.

注意事项

Notes

  • 迁移前确保目标盘有足够的剩余空间
  • 如果用户需要一次迁移多个文件夹,逐个按照四步骤执行即可,每个文件夹独立处理,互不影响
  • Ensure the target drive has sufficient remaining space before migration
  • If the user needs to migrate multiple folders at once, execute them one by one according to the four-step process, each folder is handled independently without affecting each other