AM电脑吧 - Win10精简版系统_Win11精简版_Win7旗舰版

Yes
查看: 7282|回复: 8
收起左侧

[其它] 转移C盘个人资料到D盘批处理

[复制链接]
ampc8121

签到天数: 20 天

[LV.4]四枚内存条

id BIOS 发表于 2013-02-25 00:28:48
用批处理 转移C盘个人资料到D盘
把下面代码保存为*.cmd文件
  1. [url=home.php?mod=space&uid=11926]@[/url] Echo Off
  2. @ Echo.
  3. @ Echo.
  4. @ Echo.         ★★★★   快速把C盘个人资料转移到D盘    ★★★★
  5. @ Echo.                 
  6. @ Echo ======================================================================
  7. @ Echo   现准备把C盘的个人资料转移到D盘,以防重装系统后丢失一些有用的文件。
  8. @ Echo   我的文档、Cookies、桌面的内容将要被转移到:D:\My Documents。
  9. @ Echo   收藏夹的内容将要被转移到D:\Favorites。
  10. @ Echo ======================================================================
  11. @ Echo.
  12. PAUSE
  13. md D:"My Documents"
  14. md D:"My Documents"\原系统桌面上的文件
  15. md D:"My Documents"\Cookies
  16. md D:\Favorites
  17. xcopy "C:\Documents and Settings\%USERNAME%\My Documents\*.*" "D:\My Documents" /e /h /c /y
  18. xcopy "C:\Documents and Settings\%USERNAME%\桌面\*.*" "D:\My Documents\原系统桌面上的文件" /e /h /c /y
  19. xcopy "C:\Documents and Settings\%USERNAME%\Cookies\*.*" D:"My Documents"\Cookies /e /h /c /y
  20. xcopy "C:\Documents and Settings\%USERNAME%\Favorites\*.*" D:\Favorites /e /h /c /y
  21. If Exist d:\ regedit /s newpath.reg
  22. exit
复制代码
把以下代码保存为newpath.reg导入注册表
  1. Windows Registry Editor Version 5.00

  2. [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders]
  3. "Cookies"="D:\\My Documents\\Cookies"
  4. "Favorites"="D:\\Favorites"
  5. "Personal"="D:\\My Documents"
  6. "My Music"="D:\\My Documents\\My Music"
  7. "My Video"="D:\\My Documents\\My Videos"


  8. [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]

  9. "Favorites"=hex(2):44,00,3a,00,5c,00,46,00,61,00,76,00,6f,00,72,00,69,00,74,00,\
  10. 65,00,73,00,00,00
  11. "Personal"=hex(2):44,00,3a,00,5c,00,4d,00,79,00,20,00,44,00,6f,00,63,00,75,00,\
  12. 6d,00,65,00,6e,00,74,00,73,00,00,00
  13. "Cookies"=hex(2):44,00,3a,00,5c,00,4d,00,79,00,20,00,44,00,6f,00,63,00,75,00,\
  14. 6d,00,65,00,6e,00,74,00,73,00,5c,00,43,00,6f,00,6f,00,6b,00,69,00,65,00,73,\
  15. 00,00,00
复制代码

本文地址: https://www.ampc8.com/thread-11089-1-1.html
上一篇:明起电视或出现雪花黑屏 专家称系日凌现象所致
下一篇:我的电脑右键管理打不开的解决方法
回复

举报

ampc839210

签到天数: 271 天

[LV.8]八秒开机

id trhy1234567 发表于 2016-10-28 19:50:52
支持,谢谢
回复

举报

ampc815236

签到天数: 39 天

[LV.5]五张显卡

id CAINIAO123 发表于 2013-09-26 08:38:08
绿色,环保,要收藏
回复

举报

ampc813241

签到天数: 23 天

[LV.4]四枚内存条

id yihoo 发表于 2013-04-22 17:46:32
来了,支持一下。
回复

举报

ampc81303

签到天数: 129 天

[LV.7]七个CPU

id dianluban 发表于 2013-04-22 15:02:08
好吧,我来学习
回复

举报

ampc811876

签到天数: 10 天

[LV.3]三流显示器

id 蜘蛛侠℡ 发表于 2013-03-30 16:53:03
好东西要保留
回复

举报

ampc8121

签到天数: 20 天

[LV.4]四枚内存条

lz  楼主| BIOS 发表于 2013-03-29 18:44:31
自己顶顶,都是混球,只看不回
回复

举报

ampc8110

签到天数: 3 天

[LV.2]二兆带宽

id fuldho 发表于 2013-02-25 11:26:39
不错!值得收藏。
回复

举报

ampc81

签到天数: 644 天

[LV.9]九级电脑高手

id 发表于 2013-02-25 01:25:44
这个比较绿色,值得借鉴,谢谢..
回复

举报

您需要登录后才可以回帖 登录 | 验证注册

Powered by AMpc8.Com (晋ICP备13003365号ghs 晋公网安备 14090202000112号 |GMT+8, 2024/4/19 07:12 |
快速回复 返回顶部 返回列表