目录 / WorkBuddy 数据目录迁移
WorkBuddy 数据目录迁移
Windows-only skill to migrate or transparently redirect an application's data directory to another NTFS drive using an NTFS directory junction (mklink /J), WITHOUT deleting the original data. Use this skill when ANY of these are true: (1) the user wants to move, relocate, or redirect a Windows app data folder, free up C: system-drive space, change where an app stores its data, or create a junction or symlink path redirect on Windows, especially a path that contains Chinese or other non-ASCII characters such as E:\\软件\\workbuudy\\.workbuddy or C:\\Users\\...\\AppData; (2) the user already tried a naive .bat, .cmd, or .ps1 script that hard-codes the Chinese path inline and it keeps failing with mojibake, 'not recognized as an internal or external command', 'command not found', the script echoing/spitting out every line as a command, or PowerShell syntax errors; (3) the user reports '想把数据目录迁移到 D 盘/E 盘' or 'C 盘空间不足, 把配置移到别的盘' or 'mklink / junction 中文路径报错'. Encodes the hard-won rule that admin cmd.exe cannot reliably parse ANY .bat or .cmd containing non-ASCII characters (neither UTF-8 nor GBK works, not even in comments or auto-elevation wrappers). Ships the ONLY reliable pattern: a 100 percent pure-ASCII .bat (verified zero bytes greater than 127) that reads its Chinese target path from an EXTERNAL GBK-encoded helper file through a set /p read. The bundled generator produces this safe pair automatically; the generated script performs a final robocopy sync, an integrity check (DST file count at least 80 percent of SRC), a rename-only .bak backup that is fully reversible, the junction creation, and a write-probe self-test with auto-rollback on any failure.
这是模型对公开材料的总结,不是官方声明,请以原链内容为准。
存档时间线
| 版本 | 存档时间 | 内容哈希 | 内容 |
|---|---|---|---|
| v1 | 2026-09-21 14:37 | 83947312 | 可取 |
版本索引永久保留;内容副本只保留最近 2 版,更早版本仅留索引与哈希(存档时间线的证据链不会因此断裂)。
提交举报 / 纠错
侵权举报经核验成立后,我们会即时下线该条目并删除已存的内容副本。