标题: [系统相关] 帮忙修改WIN7下移动我的文档,收藏夹等等的批处理 [打印本页]
作者: lovealei 时间: 2011-8-31 15:25 标题: 帮忙修改WIN7下移动我的文档,收藏夹等等的批处理
本帖最后由 lovealei 于 2011-8-31 15:26 编辑
下面的代码是xp 下用的,WIN7下好像有些问题,主要作用是移动文件,那位大哥帮我改改,在WIN7下可以用- md "D:\StoneNet\桌面"
- md "D:\StoneNet\Favorites\链接"
- md "D:\StoneNet\桌面"
- md "D:\StoneNet\Favorites\链接"
- xcopy "C:\Documents and Settings\All Users\桌面\*.*" "D:\StoneNet\桌面" /e /h /k /r /f /y
- xcopy "C:\Documents and Settings\Administrator\桌面\*.*" "D:\StoneNet\桌面" /e /h /k /r /f /y
- xcopy "C:\Documents and Settings\Administrator\Favorites\*.*" "D:\StoneNet\Favorites\" /e /h /k /r /f /y
- xcopy "C:\Documents and Settings\Administrator\Favorites\链接\*.*" "D:\StoneNet\Favorites\链接" /e /h /k /r /f /y
- xcopy "C:\Documents and Settings\All Users\Favorites\*.*" "D:\StoneNet\Favorites\" /e /h /k /r /f /y
- xcopy "C:\Documents and Settings\Administrator\My Documents\*.*" "D:\StoneNet\" /e /h /k /r /f /y
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /V "Favorites" /D "D:\StoneNet\Favorites" /F
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /V Desktop /d "D:\StoneNet\桌面" /f
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /V "Personal" /d "D:\StoneNet" /f
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /V "My Music" /d "D:\StoneNet\My Music" /f
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /V "My Video" /d "D:\StoneNet\我的视频" /f
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /V Favorites /D "D:\StoneNet\Favorites" /F
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /V Desktop /d "D:\StoneNet\桌面" /f
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /V "Personal" /d "D:\StoneNet" /f
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /V "My Music" /d "D:\StoneNet\My Music" /f
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /V "My Pictures" /d "D:\StoneNet\My Pictures" /f
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DocFolderPaths" /v "Administrator" /d "D:\StoneNet" /f
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /V "Common Desktop" /D "D:\StoneNet\桌面" /F
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /V "Common Documents" /D "D:\StoneNet" /F
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /V "Common Favorites" /D "D:\StoneNet\Favorites" /F
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /V "CommonMusic" /D "D:\StoneNet\My Music" /F
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /V "CommonPictures" /D "D:\StoneNet\My Pictures" /F
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /V "CommonVideo" /D "D:\StoneNet\我的视频" /F
- rd /s /q "C:\Documents and Settings\All Users\桌面"
- rd /s /q "C:\Documents and Settings\Administrator\桌面"
- rd /s /q "C:\Documents and Settings\Administrator\Favorites"
- rd /s /q "C:\Documents and Settings\Administrator\Favorites\链接"
- rd /s /q "C:\Documents and Settings\All Users\Favorites"
- rd /s /q "C:\Documents and Settings\Administrator\My Documents"
- echo.
- echo 成功的移动个人文件夹到D盘.请按任意键刷新.
- pause
- gpupdate /force
- goto start
复制代码
作者: CUer 时间: 2011-8-31 17:30
好像有神马问题?
作者: lovealei 时间: 2011-9-1 15:22
没有人帮顶啊, 主要是注册表位置,文件夹位置
欢迎光临 批处理之家 (http://www.bathome.net/) |
Powered by Discuz! 7.2 |