无忧启动论坛

标题: 一键转移个人资料 v1.0 (build 2011.06.24) [打印本页]

作者: gmy    时间: 2011-6-24 13:19
标题: 一键转移个人资料 v1.0 (build 2011.06.24)
一键转移个人资料 v1.0

    重装系统之后,我习惯在"一键GHOST备份系统"之前将个人资料永久转移到D盘,
目的很简单:避免"一键GHOST恢复系统"后,新近产生的个人资料丢失,另外,可以减小GHO体积。
个人资料包括:桌面、收藏夹、我的文档、共享文档、cookies,
本程序采用批处理方式制作,优点是:执行效率高、节省时间;开放源代码,便于分享、扩展与提高。


    希望大家试用并提出宝贵意见.
    有任何问题请 回复此贴,不要发新贴。


无忧论坛 DOS讨论区 版主 gmy 制作
2011.6.24

一键转移个人资料v1.0.bat 源代码
  1. @echo off
  2. cls
  3. echo 欢迎使用 一键转移个人资料 v1.0
  4. echo.
  5. echo 转移的目标路径是
  6. echo D:\桌面
  7. echo D:\收藏夹
  8. echo D:\我的文档
  9. echo D:\共享文档
  10. echo D:\我的文档\cookies
  11. echo.
  12. echo 按任意键开始转移。
  13. pause >nul
  14. if not exist d:\ goto end
  15. md D:\桌面
  16. md D:\收藏夹
  17. md D:\我的文档
  18. md D:\共享文档
  19. md D:\我的文档\cookies
  20. REM 默认路径
  21. xcopy "C:\Documents and Settings\%USERNAME%\桌面\*.*" D:\桌面 /e /h /c /y
  22. xcopy "%ALLUSERSPROFILE%\桌面\*.*" D:\桌面 /e /h /c /y
  23. xcopy "C:\Documents and Settings\%USERNAME%\Favorites\*.*" D:\收藏夹 /e /h /c /y
  24. xcopy "%ALLUSERSPROFILE%\Favorites\*.*" D:\收藏夹 /e /h /c /y
  25. xcopy "C:\Documents and Settings\%USERNAME%\My Documents\*.*" D:\我的文档 /e /h /c /y
  26. xcopy "%ALLUSERSPROFILE%\Documents\*.*" D:\共享文档 /e /h /c /y
  27. xcopy "C:\Documents and Settings\%USERNAME%\cookies\*.*" D:\我的文档\cookies /e /h /c /y
  28. REM 兼容其它优化程序设置的路径
  29. xcopy "D:\My Documents\desktop\*.*" D:\桌面 /e /h /c /y
  30. xcopy "D:\My Documents\桌面\*.*" D:\桌面 /e /h /c /y
  31. xcopy "D:\desktop\*.*" D:\桌面 /e /h /c /y
  32. xcopy "D:\My Documents\Favorites\*.*" D:\收藏夹 /e /h /c /y
  33. xcopy "D:\My Documents\收藏夹\*.*" D:\收藏夹 /e /h /c /y
  34. xcopy "D:\Favorites\*.*" D:\收藏夹 /e /h /c /y
  35. xcopy "D:\My Documents\*.*" D:\我的文档 /e /h /c /y
  36. xcopy "D:\My Documents\cookies\*.*" D:\我的文档\cookies /e /h /c /y
  37. xcopy "D:\cookies\*.*" D:\我的文档\cookies /e /h /c /y
  38. regedit /s newdir.reg
  39. cls
  40. echo 执行完毕,重启才能生效,请关闭正在使用的其它软件,按任意键将重启电脑。
  41. pause >nul
  42. shutdown -r
  43. :end
复制代码
newdir.reg 源代码
  1. Windows Registry Editor Version 5.00
  2. [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DocFolderPaths]
  3. "Administrator"="D:\\我的文档"
  4. [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders]
  5. "Personal"="D:\\我的文档"
  6. "CommonPictures"="D:\\我的文档\\My Pictures"
  7. "CommonMusic"="D:\\我的文档\\My Music"
  8. "CommonVideo"="D:\\我的文档\\My Videos"
  9. "Common Favorites"="D:\\收藏夹"
  10. "Common Desktop"="C:\\Documents and Settings\\All Users\\桌面"
  11. "Common Documents"="D:\\共享文档"
  12. [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders]
  13. "Personal"="D:\\我的文档"
  14. "My Pictures"="D:\\我的文档\\My Pictures"
  15. "My Music"="D:\\我的文档\\My Music"
  16. "My Video"="D:\\我的文档\\My Videos"
  17. "Cookies"="D:\\我的文档\\Cookies"
  18. "Favorites"="D:\\收藏夹"
  19. "Desktop"="D:\\桌面"
  20. [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]
  21. "Personal"=hex(2):44,00,3a,00,5c,00,11,62,84,76,87,65,63,68,00,00
  22. "CommonPictures"=hex(2):44,00,3a,00,5c,00,11,62,84,76,87,65,63,68,5c,00,4d,00,79,\
  23.   00,20,00,50,00,69,00,63,00,74,00,75,00,72,00,65,00,73,00,00,00
  24. "CommonMusic"=hex(2):44,00,3a,00,5c,00,11,62,84,76,87,65,63,68,5c,00,4d,00,79,00,\
  25.   20,00,4d,00,75,00,73,00,69,00,63,00,00,00
  26. "CommonVideo"=hex(2):44,00,3a,00,5c,00,11,62,84,76,87,65,63,68,5c,00,4d,00,79,00,\
  27.   20,00,56,00,69,00,64,00,65,00,6f,00,73,00,00,00
  28. "Common Favorites"=hex(2):44,00,3a,00,5c,00,36,65,cf,85,39,59,00,00
  29. "Common Desktop"=hex(2):25,00,41,00,4c,00,4c,00,55,00,53,00,45,00,52,00,53,00,\
  30.   50,00,52,00,4f,00,46,00,49,00,4c,00,45,00,25,00,5c,00,4c,68,62,97,00,00
  31. "Common Documents"=hex(2):44,00,3a,00,5c,00,71,51,ab,4e,87,65,63,68,00,00
  32. [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]
  33. "Personal"=hex(2):44,00,3a,00,5c,00,11,62,84,76,87,65,63,68,00,00
  34. "My Pictures"=hex(2):44,00,3a,00,5c,00,11,62,84,76,87,65,63,68,5c,00,4d,00,79,\
  35.   00,20,00,50,00,69,00,63,00,74,00,75,00,72,00,65,00,73,00,00,00
  36. "My Music"=hex(2):44,00,3a,00,5c,00,11,62,84,76,87,65,63,68,5c,00,4d,00,79,00,\
  37.   20,00,4d,00,75,00,73,00,69,00,63,00,00,00
  38. "My Video"=hex(2):44,00,3a,00,5c,00,11,62,84,76,87,65,63,68,5c,00,4d,00,79,00,\
  39.   20,00,56,00,69,00,64,00,65,00,6f,00,73,00,00,00
  40. "Cookies"=hex(2):44,00,3a,00,5c,00,11,62,84,76,87,65,63,68,5c,00,43,00,6f,00,\
  41.   6f,00,6b,00,69,00,65,00,73,00,00,00
  42. "Favorites"=hex(2):44,00,3a,00,5c,00,36,65,cf,85,39,59,00,00
  43. "Desktop"=hex(2):44,00,3a,00,5c,00,4c,68,62,97,00,00
复制代码
下载地址见附件:



[ 本帖最后由 gmy 于 2011-6-24 16:08 编辑 ]

1KEY_MOVE.rar

1.97 KB, 下载次数: 1966, 下载积分: 无忧币 -2

一键转移个人资料_20110624


作者: zjzaog    时间: 2011-6-24 15:46
版主强大,强烈支持,下载了用先!
作者: lhteee    时间: 2011-6-24 21:08
好!!!
简洁高效!!!
作者: fanghui    时间: 2011-6-24 23:39
bat是转移个人资料的批处理,那么etnewdir.reg 又是什么作用?
作者: sdshi    时间: 2011-6-25 10:06
xp和win7都可以用么?
作者: gmy    时间: 2011-6-25 14:21
原帖由 sdshi 于 2011-6-25 10:06 发表
xp和win7都可以用么?


目前仅在XP下测试过。还得请有WIN7的网友们测试一下才能知道能否使用。我估计是通用的。

[ 本帖最后由 gmy 于 2011-6-25 14:26 编辑 ]
作者: gmy    时间: 2011-6-25 14:24
原帖由 fanghui 于 2011-6-24 23:39 发表
bat是转移个人资料的批处理,那么regedit /s newdir.reg 又是什么作用?


修改注册表啊!newdir.reg是我随便起的名字,意思为“新目录”,可以改成其它名字。
作者: jiyuquan    时间: 2011-6-25 14:45
DOS下和PE下都能使用吗?

还有如果是多账户呢?
作者: 讯极天度    时间: 2011-6-25 17:05
标题: 版主
批处理好啊!这样今后在封装系统的时候,就好玩点!
作者: fanghui    时间: 2011-6-25 22:28
原帖由 <i>gmy</i> 于 2011-6-25 14:24 发表 <a href="http://bbs.wuyou.net/redirect.php?goto=findpost&pid=2264353&ptid=195955" target="_blank"><img src="http://bbs.wuyou.net/images/common/back.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open(this.src);}" onmousewheel="return imgzoom(this);" alt="" /></a><br />

<br />

<br />
修改注册表啊!newdir.reg是我随便起的名字,意思为“新目录”,可以改成其它名字。
<br />
哦,重装系统之后指定个人资料目录的作用吧,如果只需要备份个人资料好像不需要用这个,不知道理解的对不对。
作者: lxl1638    时间: 2011-6-26 19:38
遇到这个就悲剧了。。。。

未命名.PNG (16.28 KB, 下载次数: 331)

未命名.PNG

作者: 2010zihan    时间: 2011-6-26 21:35
不支持win7的话基本没有前景。。。
作者: 135956    时间: 2011-6-27 08:01
建议把这些文件夹都放入“我的文档”。
作者: lafter    时间: 2011-6-28 17:09
原帖由 135956 于 2011-6-27 08:01 发表
建议把这些文件夹都放入“我的文档”。

我也觉得把这些文件夹都放入一个目录比较好,清爽嘛
另外,这个批处理针对性太强,应该加强下,适应此类文件夹分布在不同分区或者路径下的情况。例如,在D盘搜索到其它此类文件夹后,应该由用户决定是否转移到默认的目录下。对C盘存在此类文件夹时要优先处理下,因为安装版的系统不在少数,其中就有人懒得动此类文件夹的
作者: x9tian    时间: 2011-6-29 21:45
什么都可以转移, 但我不主张把,cookies  , 桌面 转移。


  有些 流氓软件, 喜欢生成一些,垃圾快键到桌面,保存到D盘目录一点都不好。
作者: hydn    时间: 2011-6-30 18:02
这个很不错,正需要呢。
作者: 2011hty    时间: 2011-7-2 00:12
楼主看起来不错 啊
作者: sayhi1984    时间: 2011-7-6 17:01
支持g版大大,是不是只能备份资料,装入系统后还能不能恢复原路径呢?
作者: wbzzzzj    时间: 2011-7-7 09:36
感谢分享!!!!!!!!
作者: zcdyj    时间: 2011-7-10 00:09
支持版主 如果做个DOS版的就更好了
作者: tmdgdx    时间: 2011-7-10 16:12
个人建议:尽量使用英文目录名,如“我的文档”改为“My Documents”,现在好多老外的游戏,存档文档在“我的文档”下,它不支持中文目录,也有一些特殊行业软件,如使用一些如JAVA的支持软件,对中文路径也支持不好,造成很多莫名其妙的问题……
作者: 小松鼠    时间: 2011-7-12 07:12
建议:
1.支持win7

2.尽量使用英文目录名

3.这些目录放在一个目录.

4.可以选择性转移,有的目录不是必需的
作者: pnzzs    时间: 2011-7-12 20:33
那要怎么还原啊
作者: ziyun    时间: 2011-7-15 19:57
又一个精品。谢谢楼主,太谢谢了,支持
作者: 2011-cailin    时间: 2011-7-16 19:16
简洁高效!!!强烈支持
作者: fyqingshan    时间: 2011-7-16 22:12
请教葛老大,win7下的~1文件夹是怎么建的呀,都是学易得,悄悄的告诉我
作者: powertome    时间: 2011-7-18 13:40
支持葛老大的作品,win732 bit试试
作者: powertome    时间: 2011-7-18 13:41
支持葛老大的作品,win732 bit试试
作者: yjq635    时间: 2011-7-22 15:28
贴个自己搞的VBS版本 修改桌面位置,可以自己选择位置,刷新桌面位置没搞定,重启explorer时有点问题,可以手动重启explorer生效

Const MY_COMPUTER = &H11&
Const WINDOW_HANDLE = 0
Const OPTIONS = 0
Dim WshSHell
Set WshSHell = WScript.CreateObject("WScript.Shell")
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(MY_COMPUTER)
Set objFolderItem = objFolder.Self
Set FSO = CreateObject("Scripting.FileSystemObject")
InsTitle = "移动桌面到"
intAnswer = MsgBox("【是】 “" + InsTitle + "”" &Chr(10)&Chr(10)&"【否】我点错了,请退出 “" + InsTitle+ "”" , vbQuestion + vbYesNoCancel, "安装 - "+ InsTitle +" - "+ Copyright)
                If intAnswer = vbYes Then
strPath = objFolderItem.Path
Set objFolder = objShell.BrowseForFolder _
(WINDOW_HANDLE, "请选择新的桌面位置:", OPTIONS, strPath)
        If objFolder Is Nothing Then
Wscript.Quit
        End If
Set objFolderItem = objFolder.Self
newpath = objFolderItem.Path
oldpath = WshSHell.RegRead ("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Desktop")
WshSHell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Desktop",newpath ,"REG_EXPAND_SZ"
'WshSHell.Run "taskkill -f -im explorer.exe",0,True
'WshSHell.Run "explorer.exe"
FSO.CopyFolder oldpath , newpath
Wscript.Echo "您的桌面新的位置:" + newpath
                end if
                If intAnswer = vbNo Then
Wscript.Quit
                End If
作者: 2011pz    时间: 2011-7-30 16:09
好东西,先收下了,谢谢分享!
作者: 2011-7-28    时间: 2011-8-3 07:14
不错,很小很强大.....
作者: pznpt    时间: 2011-8-9 11:11
强大而实用,支持。

现在很多人在PE下重装系统,如果能在PE下运行的话就更强大而实用了 。。。
作者: rzsggg    时间: 2011-8-23 14:24
企业用户缺少自带邮箱的文件夹,晕,忘了什么名字了。在local下的。
作者: chengchun    时间: 2011-9-3 23:46
楼主的软件好强大,收藏了
作者: 20103800819    时间: 2011-10-6 14:10
嗯,的确不错。支持一下。
作者: xiaowuo    时间: 2011-10-8 09:32
希望楼主能改进下:
我想仅将:我的文档、桌面、收藏夹 这三个东东全部移动到D:\我的文档中,这样D盘文件夹不会太多,太乱,容易管理,其它的Cookies和共享文档,可以在批处理中设置成Y/N的提示根据需要选择是否移动,而不是像现在这样,默认全部移动。
作者: 2011luozuhui    时间: 2011-10-21 19:20
新手学习,学习。
作者: 2010disifanuo    时间: 2011-10-27 12:55
呵呵 很强大、、,。。。。
作者: xyxb    时间: 2011-11-17 13:47
版主强大,强烈支持,下载了用先!
作者: mcc123    时间: 2011-12-10 18:40
先谢谢楼主的分享!
又请教一下楼主,是否将*bat文件内的 C:  D: 文字互调便可得到还原的效果。
及删改一些不想执行的,是否将*bat文件内的相关 D: 项删掉就行?谢谢!
作者: 张尧810928    时间: 2012-1-13 13:50
学习了,支持了,谢谢了
作者: harry586    时间: 2012-1-22 19:20
。。。。~~~~等了 我怎么才发现 一直是手动改 累啊
作者: 2011新手红    时间: 2012-1-24 15:45
好贴呀,偶正需要这方面的工具软件,感谢楼主的无私分享,祝楼主龙年合家幸福,快乐!
作者: 2011新手红    时间: 2012-2-7 11:28
好文章,感谢楼主的无私分享这么给力的和序,辛苦了,支持!
作者: 2012pe    时间: 2012-2-11 18:23
今天没事干  来兜一圈。
作者: hdongmiao    时间: 2012-3-5 14:00
学习下,看有用不,多谢楼主分享
作者: 20121733413480    时间: 2012-3-28 18:51
很强啊,谢谢。我会用的着。
作者: 2011npwjm    时间: 2012-4-6 20:33
这个以后重装系统用得到
作者: sbl5158    时间: 2012-6-16 09:51
一直在用深山红叶的资料转移批处理
作者: xiaoj1972    时间: 2012-7-27 02:07
原帖由 <i>xiaowuo</i> 于 2011-10-8 09:32 发表 <a href="http://bbs.wuyou.net/redirect.php?goto=findpost&pid=2316492&ptid=195955" target="_blank"><img src="http://bbs.wuyou.net/images/common/back.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open(this.src);}" onmousewheel="return imgzoom(this);" alt="" /></a><br />
希望楼主能改进下:<br />
我想仅将:我的文档、桌面、收藏夹 这三个东东全部移动到D:\我的文档中,这样D盘文件夹不会太多,太乱,容易管理,其它的Cookies和共享文档,可以在批处理中设置成Y/N的提示根据需要选择是 ...
<br />

我也想要这样的,
版主帮忙写一个啊,谢谢
作者: 2012chxg    时间: 2012-8-10 13:51
标题: 回复 #1 gmy 的帖子
感谢分享后指定个人资料目录
作者: 2012半叟    时间: 2012-11-2 08:48
比深度小兵的资料转移如何。
作者: dudubird    时间: 2012-11-25 22:42
程序很好很实用,但建议统一转移到D盘“用户文件”的文件夹内,这样显得比较干净利落,减少D盘根目录下系统文件夹个数。
作者: 2012q891052089    时间: 2013-1-21 19:26
标题: 回复 #6 gmy 的帖子
win7 不行,我写过这样的程序,虽然不是用批处理。
作者: 2013n1ckm0rgan    时间: 2013-3-8 19:20
谢谢版主,这下方便多了
作者: xyxb    时间: 2013-5-5 13:33
强烈支持,下载了用先!
作者: wufencheng    时间: 2013-8-27 22:14
好啊,不错
作者: wufencheng    时间: 2013-8-27 22:16
好啊,不错
作者: wufencheng    时间: 2013-8-27 22:17
好啊,不错
作者: 2011新手红    时间: 2014-1-9 10:01
这款软件的确是十分适合办工人员用来保存日常资料的保管,辛苦了,支持!
作者: cszwin    时间: 2014-1-21 14:14
这个相当不错
作者: lgx    时间: 2014-2-6 16:06
好牛逼啊学习了。
作者: jmjmbj    时间: 2014-7-26 19:36
现有有最新版了 1.4.5
作者: xhj    时间: 2015-3-1 10:36
希望可以修改下,适用于win7和win8.
作者: fanggong    时间: 2015-3-2 08:00
好贴,谢谢分享!
作者: nmscl    时间: 2015-3-2 08:44
下载备用,谢谢楼主分享

作者: fanggong    时间: 2015-3-6 07:53
不错,支持一下。
作者: fanggong    时间: 2015-4-6 07:42
不错,谢谢分享!
作者: 小小黑    时间: 2015-4-9 13:37
感谢楼主发帖
作者: cutemmzlp    时间: 2015-7-30 20:56
GMY老大,更新一下,支持win10啊,谢谢老大
作者: stion    时间: 2015-8-25 17:59
p whp wh这个好,收藏了

作者: cutemmzlp    时间: 2015-9-20 18:40
回复一下楼主
最新的1.56转移版本,在win10专业版下,转移也出现许多问题。。。
许多文件图标丢失。。。
作者: chishingchan    时间: 2016-1-29 21:25
献个丑:
  1. @echo off
  2. title 命令提示符
  3. if "%1"=="/?" goto help
  4. if "%1"=="/h" goto help
  5. if "%1"=="/H" goto help
  6. if "%1"=="/u" goto original
  7. if "%1"=="/U" goto original
  8. title 转移系统资料文件夹的位置-向导
  9. :input
  10. cls
  11. echo 当前系统资料文件夹的名称及位置:
  12. echo.
  13. for /f "tokens=2*" %%a in ('REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Personal ^|findstr "Personal"') do set MD=%%b
  14. echo 『我的文档』
  15. if "%MD%"=="" set MD=%USERPROFILE%\My Documents
  16. echo %MD%
  17. echo.
  18. for /f "tokens=3*" %%a in ('REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "My Music" ^|findstr "Music"') do set MM=%%b
  19. echo 『我的音乐』
  20. if "%MM%"=="" set MM=%USERPROFILE%\My Documents\My Music
  21. echo %MM%
  22. echo.
  23. for /f "tokens=3*" %%a in ('REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "My Video" 2^>nul^|findstr "Video"') do set MV=%%b
  24. echo 『我的视频』
  25. if "%MV%"=="" set MV=%USERPROFILE%\My Documents\My Videos
  26. echo %MV%
  27. echo.
  28. for /f "tokens=3*" %%a in ('REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "My Pictures" ^|findstr "Pictures"') do set MP=%%b
  29. echo 『图片收藏夹』
  30. if "%MP%"=="" set MP=%USERPROFILE%\My Documents\My Pictures
  31. echo %MP%
  32. echo.
  33. for /f "tokens=2*" %%a in ('REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Favorites ^|findstr "Favorites"') do set F=%%b
  34. echo 『收藏夹』
  35. if "%F%"=="" set F=%USERPROFILE%\Favorites
  36. echo %F%
  37. echo.
  38. for /f "tokens=2 delims={}" %%a in ('REG QUERY HKCU\Identities /v "Default User ID" 2^>nul^|findstr /i "Default"') do @set O=%%a
  39. for /f "tokens=3*" %%a in ('REG QUERY "HKCU\Identities\{%O%}\Software\Microsoft\Outlook Express\5.0" /v "Store Root" 2^>nul^|findstr "Store"') do @set OE=%%b
  40. echo 『Outlook Express』
  41. if "%OE%"=="" set OE=%USERPROFILE%\Local Settings\Application Data\Identities\{88888888-8888-8888-8888-888888888888}\Microsoft\Outlook Express\
  42. echo %OE%
  43. echo.
  44. set /P OK="请输入一个指令或目标驱动器:[H | Q | U | drive:] "
  45. if "%OK%"=="h" set h=1&goto help
  46. if "%OK%"=="H" set h=1&goto help
  47. if "%OK%"=="q" echo.&echo 正在退出. . .&call :ProcDelay 200&goto end
  48. if "%OK%"=="Q" echo.&echo 正在退出. . .&call :ProcDelay 200&goto end
  49. if "%OK%"=="u" goto original
  50. if "%OK%"=="U" goto original
  51. if not exist %OK%\nul goto input
  52. xcopy "%MD%\*.*" "%OK%\My Documents" /q /h /r /y>nul 2>nul
  53. xcopy "%F%\*.*" "%OK%\My Documents\Favorites" /s /q /h /r /y>nul 2>nul
  54. rd "%F%" /s /q>nul 2>nul
  55. :: xcopy "%MM%\*.*" "%OK%\My Documents\My Music" /s /q /h /r /y>nul 2>nul
  56. :: rd "%MM%" /s /q>nul 2>nul
  57. :: xcopy "%MP%\*.*" "%OK%\My Documents\My Pictures" /s /q /h /r /y>nul 2>nul
  58. :: rd "%MP%" /s /q>nul 2>nul
  59. xcopy "%MV%\*.*" "%OK%\My Documents\My Videos" /s /q /h /r /y>nul 2>nul
  60. rd "%MV%" /s /q>nul 2>nul
  61. xcopy "%OE%\*.*" "%OK%\My Documents\Outlook Express" /s /q /h /r /y>nul 2>nul
  62. rd "%OE%" /s /q>nul 2>nul
  63. rd "%MD%" /q>nul 2>nul
  64. reg delete "HKCU\Identities\{%O%}" /f>nul
  65. reg add "HKCU\Identities" /v "Default User ID" /t REG_SZ /d "{88888888-8888-8888-8888-888888888888}" /f>nul
  66. reg add "HKCU\Identities" /v "Last User ID" /t REG_SZ /d "{88888888-8888-8888-8888-888888888888}" /f>nul
  67. reg add "HKCU\Identities\{88888888-8888-8888-8888-888888888888}" /v "User ID" /t REG_SZ /d "{88888888-8888-8888-8888-888888888888}" /f>nul
  68. reg add "HKCU\Identities\{88888888-8888-8888-8888-888888888888}\Software\Microsoft\Outlook Express\5.0" /v "Store Root" /t REG_EXPAND_SZ /d "%OK%\My Documents\Outlook Express\" /f>nul
  69. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Favorites" /t REG_SZ /d "%OK%\My Documents\Favorites" /f>nul
  70. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "My Music" /t REG_SZ /d "%OK%\My Documents\My Music" /f>nul
  71. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "My Pictures" /t REG_SZ /d "%OK%\My Documents\My Pictures" /f>nul
  72. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "My Video" /t REG_SZ /d "%OK%\My Documents\My Videos" /f>nul
  73. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Personal" /t REG_SZ /d "%OK%\My Documents" /f>nul
  74. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Favorites" /t REG_EXPAND_SZ /d "%OK%\My Documents\Favorites" /f>nul
  75. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "My Pictures" /t REG_EXPAND_SZ /d "%OK%\My Documents\My Pictures" /f>nul
  76. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Personal" /t REG_EXPAND_SZ /d "%OK%\My Documents" /f>nul
  77. echo.
  78. echo 文件夹内容已经转移,注册表信息已经更改,重新启动后生效!
  79. call :ProcDelay 400
  80. goto end
  81. :original
  82. reg add "HKCU\Identities" /v "Default User ID" /t REG_SZ /d "{88888888-8888-8888-8888-888888888888}" /f>nul
  83. reg add "HKCU\Identities" /v "Last User ID" /t REG_SZ /d "{88888888-8888-8888-8888-888888888888}" /f>nul
  84. reg add "HKCU\Identities\{88888888-8888-8888-8888-888888888888}" /v "User ID" /t REG_SZ /d "{88888888-8888-8888-8888-888888888888}" /f>nul
  85. reg add "HKCU\Identities\{88888888-8888-8888-8888-888888888888}\Software\Microsoft\Outlook Express\5.0" /v "Store Root" /t REG_EXPAND_SZ /d "%USERPROFILE%\Local Settings\Application Data\Identities\{88888888-8888-8888-8888-888888888888}\Microsoft\Outlook Express\" /f>nul
  86. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Favorites" /t REG_SZ /d "%USERPROFILE%\Favorites" /f>nul
  87. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "My Music" /t REG_SZ /d "%USERPROFILE%\My Documents\My Music" /f>nul
  88. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "My Pictures" /t REG_SZ /d "%USERPROFILE%\My Documents\My Pictures" /f>nul
  89. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "My Video" /t REG_SZ /d "%USERPROFILE%\My Documents\My Videos" /f>nul
  90. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Personal" /t REG_SZ /d "%USERPROFILE%\My Documents" /f>nul
  91. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Favorites" /t REG_EXPAND_SZ /d "%%USERPROFILE%%\Favorites" /f>nul
  92. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "My Pictures" /t REG_EXPAND_SZ /d "%%USERPROFILE%%\My Documents\My Pictures" /f>nul
  93. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Personal" /t REG_EXPAND_SZ /d "%%USERPROFILE%%\My Documents" /f>nul
  94. if not "%MD%"=="%USERPROFILE%\My Documents" xcopy "%MD%\*.*" "%USERPROFILE%\My Documents" /q /h /r /y>nul 2>nul
  95. if not "%F%"=="%USERPROFILE%\Favorites" xcopy "%F%\*.*" "%USERPROFILE%\Favorites" /s /q /h /r /y>nul 2>nul
  96. if not "%F%"=="%USERPROFILE%\Favorites" rd "%F%" /s /q>nul 2>nul
  97. :: if not "%MM%"=="%USERPROFILE%\My Documents\My Music" xcopy "%MM%\*.*" "%USERPROFILE%\My Documents\My Music" /s /q /h /r /y>nul 2>nul
  98. :: if not "%MM%"=="%USERPROFILE%\My Documents\My Music" rd "%MM%" /s /q>nul 2>nul
  99. :: if not "%MP%"=="%USERPROFILE%\My Documents\My Pictures" xcopy "%MP%\*.*" "%USERPROFILE%\My Documents\My Pictures" /s /q /h /r /y>nul 2>nul
  100. :: if not "%MP%"=="%USERPROFILE%\My Documents\My Pictures" rd "%MP%" /s /q>nul 2>nul
  101. if not "%MV%"=="%USERPROFILE%\My Documents\My Videos" xcopy "%MV%\*.*" "%USERPROFILE%\My Documents\My Videos" /s /q /h /r /y>nul 2>nul
  102. if not "%MV%"=="%USERPROFILE%\My Documents\My Videos" rd "%MV%" /s /q>nul 2>nul
  103. if not "%OE%"=="%USERPROFILE%\Local Settings\Application Data\Identities\{88888888-8888-8888-8888-888888888888}\Microsoft\Outlook Express" xcopy "%OE%\*.*" "%USERPROFILE%\Local Settings\Application Data\Identities\{88888888-8888-8888-8888-888888888888}\Microsoft\Outlook Express" /s /q /h /r /y>nul 2>nul
  104. if not "%OE%"=="%USERPROFILE%\Local Settings\Application Data\Identities\{88888888-8888-8888-8888-888888888888}\Microsoft\Outlook Express" rd "%OE%" /s /q>nul 2>nul
  105. if not "%MD%"=="%USERPROFILE%\My Documents" rd "%MD%" /q>nul 2>nul
  106. echo.
  107. echo 注册表信息已经恢复,文件夹内容已经转移,重新启动后生效!
  108. call :ProcDelay 400
  109. goto end
  110. :help
  111. if "%h%"=="1" echo.
  112. echo 转移系统资料文件夹的位置。
  113. echo.
  114. echo DATAMOVE [drive:] [/U] [/Q] [/H]
  115. echo.
  116. echo   drive:  指定要转移到的目标驱动器
  117. echo   /U      恢复系统默认值
  118. echo   /Q      向导中退出
  119. echo   /H      显示帮助信息
  120. echo.
  121. echo 不加任何参数键入 DATAMOVE,可以启动一个向导。
  122. echo.
  123. echo 目标驱动器将自动添加文件夹路径 My Documents。
  124. echo.
  125. echo 命令行开关 /U 会将更改过的系统注册表信息还原。
  126. echo 它不会还原回您之前已更改系统的任何值,而直接
  127. echo 还原回系统的默认值。
  128. echo.
  129. if "%h%"=="1" pause&set h=&goto input
  130. goto end

  131. :ProcDelay number
  132. Setlocal EnableExtensions
  133. for /f "tokens=1-4 delims=:. " %%h in ("%TIME%") do set start_=%%h%%i%%j%%k
  134.      :wait_
  135.      for /f "tokens=1-4 delims=:. " %%h in ("%TIME%") do set now_=%%h%%i%%j%%k
  136.      set /a diff_=%now_%-%start_%
  137. if %diff_% lss %1 goto wait_
  138. Endlocal

  139. :end
  140. set MD=
  141. set MM=
  142. set MV=
  143. set MP=
  144. set F=
  145. set O=
  146. set OE=
  147. set OK=
  148. set h=
复制代码

作者: tanghe791    时间: 2016-3-18 09:45
鉴定完毕!
作者: 黄超华    时间: 2016-7-20 21:41
先下载先,以后有用
作者: qufuxiaozi    时间: 2016-8-31 17:15
批处理可以的
作者: y7y007    时间: 2016-9-22 23:47

厉害啊,高手的高手
作者: Mindfly    时间: 2016-12-26 13:23
看标题,就想起了一键ghost的一款工具,进来一看自主的名称,果然如此。
很好用的小工具,一直在使用之
作者: rik0dg    时间: 2017-2-4 15:57
共同发展!学习才会进步,谢了












父亲妈妈fuqinmm.com
明星资料fuqinmm.com
电视剧更新fuqinmm.com
明星资讯fuqinmm.com
电视剧剧情fuqinmm.com
明星资料 fuqinmm.com/mingxing/
搞笑视频fuqinmm.com/shipin/joke.html
热门电影fuqinmm.com/dianying/
父亲妈妈视频fuqinmm.com/shipin/
好看的电影fuqinmm.com/dianying/
最新上映的电影fuqinmm.com/dianying/
最热门的综艺节目fuqinmm.com/zongyi/
好看的综艺节目fuqinmm.com/zongyi/
热门电视剧fuqinmm.com/dianshi/
好的的电视剧fuqinmm.com/dianshi/

作者: jolin512    时间: 2017-5-8 21:02
看起来很强大啊,马上来试试看!
作者: haijie1223    时间: 2017-8-14 10:44
以前写过AU3版本
作者: chxene    时间: 2017-11-17 13:43
想问下大神,dos6.22怎么安装,不通过虚拟机,直接安装在硬盘上
作者: xsy365    时间: 2018-2-22 09:00
不错呀,感谢分享
作者: asd000    时间: 2018-2-26 13:54
haoyongma
作者: 707311656    时间: 2018-4-24 21:58
想都没想到原来这里历史很悠久
作者: comeontxw    时间: 2018-10-30 13:17
楼主没有考虑更新?
作者: t168    时间: 2019-7-18 15:30
强烈支持
作者: 张雍逸    时间: 2021-2-18 13:50
谢谢分享!
作者: 童心学艺    时间: 2021-2-24 06:08
感谢分享!
作者: cfq001    时间: 2022-11-21 14:23
谢谢分享
作者: 2012myjoys    时间: 2022-11-22 10:15
用不了了,改了一下,全搞乱了
作者: ak009    时间: 2022-12-4 01:04
感谢分享
作者: qytjc    时间: 2022-12-8 15:46

简洁高效!!!强烈支持
作者: yunzhu    时间: 2022-12-31 23:45
感谢分享
作者: ZMLoveLH    时间: 2023-1-14 14:25
多谢提供一键转移个人资料的脚本啊,一款很经典的软件




欢迎光临 无忧启动论坛 (http://bbs.wuyou.net/) Powered by Discuz! X3.3