|
推荐
楼主 |
发表于 2017-12-3 23:11:00
|
只看该作者
- @echo off
- title 移动目标文件夹位置向导 by chishingchan
- for /f "tokens=2 delims=[]" %%i in ('ver') do @set FullVer=%%i
- for /f "tokens=2,3 delims=. " %%i in ('echo %FullVer%') do @set Ver=%%i
- if %Ver% LSS 6 mshta vbscript:CreateObject("Wscript.Shell").popup("请运行在 Windows 7/8/10 系统版本!",4,"提示",64)(window.close)&&exit
- set drive=.
- set choice=.
- SETLOCAL ENABLEDELAYEDEXPANSION
- set Name=
- for /f "tokens=3" %%i in ('wmic logicaldisk where DriveType^=3 Get FileSystem^,FreeSpace^,Name^,Size^|findstr ":"') do if not %%i==%SystemDrive% set Name=%%i !Name!
- set choice=!Name!
- for %%i in (%choice%) do if exist %%i\nul if not exist "%%i\Windows\explorer.exe" set drive=%%i
- SETLOCAL DISABLEDELAYEDEXPANSION
- if "%drive%"=="." mshta vbscript:CreateObject("Wscript.Shell").popup("没有发现可用的驱动器!",4,"错误",64)(window.close)&&exit
- if "%1"=="/?" goto help
- if "%1"=="/h" goto help
- if "%1"=="/H" goto help
- if "%1"=="/u" goto copyfiles
- if "%1"=="/U" goto copyfiles
- echo 正在检测系统,请稍候...
- for /f "tokens=2*" %%a in ('REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "{4C5C32FF-BB9D-43B0-B5B4-2D72E54EAAA4}" ^|findstr "Saved Games"') do set Current_Saved_Games=%%b
- for /f "tokens=2*" %%a in ('REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "{56784854-C6CB-462B-8169-88E350ACB882}" ^|findstr "Contacts"') do set Current_Contacts=%%b
- for /f "tokens=2*" %%a in ('REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "{BFB9D5E0-C6A9-404C-B2B2-AE6DB6AF4968}" ^|findstr "Links"') do set Current_Links=%%b
- for /f "tokens=2*" %%a in ('REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "{7D1D3A04-DEBB-4115-95CF-2F29DA2920DA}" ^|findstr "Searches"') do set Current_Searches=%%b
- for /f "tokens=2*" %%a in ('REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Favorites" ^|findstr "Favorites"') do set Current_Favorites=%%b
- for /f "tokens=3*" %%a in ('REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "My Video" ^|findstr "Videos"') do set Current_My_Video=%%b
- for /f "tokens=3*" %%a in ('REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "My Pictures" ^|findstr "Pictures"') do set Current_My_Pictures=%%b
- for /f "tokens=2*" %%a in ('REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Personal" ^|findstr "Documents"') do set Current_Personal=%%b
- for /f "tokens=3*" %%a in ('REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "My Music" ^|findstr "Music"') do set Current_My_Music=%%b
- for /f "tokens=2*" %%a in ('REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "{374DE290-123F-4565-9164-39C4925E467B}" ^|findstr "Downloads"') do set Current_Downloads=%%b
- for /f "tokens=2*" %%a in ('REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Desktop" ^|findstr "Desktop"') do set Current_Desktop=%%b
- :input
- cls
- echo 当前目标文件夹位置:
- echo.
- echo 『我的文档』 "%Current_Personal%"
- echo 『桌面』 "%Current_Desktop%"
- echo 『下载』 "%Current_Downloads%"
- echo 『收藏夹』 "%Current_Favorites%"
- echo 『我的图片』 "%Current_My_Pictures%"
- echo 『我的视频』 "%Current_My_Video%"
- echo 『我的音乐』 "%Current_My_Music%"
- echo 『保存的游戏』 "%Current_Saved_Games%"
- echo 『联系人』 "%Current_Contacts%"
- echo 『链接』 "%Current_Links%"
- echo 『搜索』 "%Current_Searches%"
- echo.
- set Drive_Letter=%drive%
- set /P Drive_Letter="请输入指令或目标驱动器(默认值:%drive%) [ H | Q | U | %choice%] "
- echo.
- rem 转换输入字符串为大写
- for /f "delims=" %%a in ('tree "\$\%Drive_Letter%"^|find /i ":\$\%Drive_Letter%"') do set Drive_Letter=%%~nxa
- set select=%Drive_Letter%
- if "%Current_Desktop:~0,1%"=="%Drive_Letter:~0,1%" mshta vbscript:CreateObject("Wscript.Shell").popup("输入的盘符与当前的盘符相同!",2,"错误",64)(window.close)&&goto input
- if "%Drive_Letter%"=="" set Drive_Letter=%drive%
- if "%Drive_Letter%"=="H" goto help
- if "%Drive_Letter%"=="Q" mshta vbscript:CreateObject("Wscript.Shell").popup("正在退出向导...",2,"移动目标文件夹位置",64)(window.close)&&goto end
- if "%Drive_Letter%"=="U" goto copyfiles
- rem 如果输入在提示行之外的字符,即返回
- echo %Drive_Letter%|findstr "%choice%">nul 2>nul
- if %errorlevel%==1 goto input
- :Users
- set XP=N
- set /P XP="是否使用 WinXP 目录结构文件夹(默认值:N) [ 返回(R) | 是(Y) | 否(N) ] "
- echo.
- rem 转换输入字符串为大写
- for /f "delims=" %%a in ('tree "\$\%XP%"^|find /i ":\$\%XP%"') do set XP=%%~nxa
- if "%XP%"=="" set XP=N
- if "%XP%"=="R" goto input
- if "%XP%"=="Y" set HP=\Documents and Settings\%USERNAME%
- if "%XP%"=="N" set HP=\Users\%USERNAME%
- rem 如果输入在提示行之外的字符,即返回
- echo %XP%|findstr "R Y N">nul 2>nul
- if %errorlevel%==1 goto Users
- :copyfiles
- set CopyFile=N
- set /P CopyFile="是否复制文件夹到目标驱动器(默认值:N) [ 返回(R) | 是(Y) | 否(N) ] "
- echo.
- rem 转换输入字符串为大写
- for /f "delims=" %%a in ('tree "\$\%CopyFile%"^|find /i ":\$\%CopyFile%"') do set CopyFile=%%~nxa
- if "%CopyFile%"=="" set CopyFile=N
- if "%CopyFile%"=="R" goto input
- rem 如果输入在提示行之外的字符,即返回
- echo %CopyFile%|findstr "R Y N">nul 2>nul
- if %errorlevel%==1 goto copyfiles
- :delsource
- set DelFile=N
- set /P DelFile="是否从源驱动器删除文件夹(默认值:N) [ 返回(R) | 是(Y) | 否(N) ] "
- echo.
- rem 转换输入字符串为大写
- for /f "delims=" %%a in ('tree "\$\%DelFile%"^|find /i ":\$\%DelFile%"') do set DelFile=%%~nxa
- if "%DelFile%"=="" set DelFile=N
- if "%DelFile%"=="R" goto input
- rem 如果输入在提示行之外的字符,即返回
- echo %DelFile%|findstr "R Y N">nul 2>nul
- if %errorlevel%==1 goto delsource
- if "%Drive_Letter%"=="u" goto default
- if "%Drive_Letter%"=="U" goto default
- echo ================================= 移动文件夹 ==================================
- echo 目标驱动器:%Drive_Letter%%HP%
- echo 复制文件夹:%CopyFile%
- echo 删除源文件:%DelFile%
- echo ===============================================================================
- echo.&&pause&&echo.
- echo 正在处理『我的文档』...
- md %Drive_Letter%%HP%\Documents>nul 2>nul
- if %CopyFile% EQU Y xcopy %Current_Personal%\*.* %Drive_Letter%%HP%\Documents\ /s /y>nul 2>nul
- attrib -r -a -s -h %Drive_Letter%%HP%\Documents\desktop.ini>nul 2>nul
- echo.>%Drive_Letter%%HP%\Documents\desktop.ini
- echo [.ShellClassInfo]>>%Drive_Letter%%HP%\Documents\desktop.ini
- echo LocalizedResourceName=@%%SystemRoot%%\system32\shell32.dll,-21770>>%Drive_Letter%%HP%\Documents\desktop.ini
- echo IconResource=%%SystemRoot%%\system32\imageres.dll,-112>>%Drive_Letter%%HP%\Documents\desktop.ini
- echo IconFile=%%SystemRoot%%\system32\shell32.dll>>%Drive_Letter%%HP%\Documents\desktop.ini
- echo IconIndex=-235>>%Drive_Letter%%HP%\Documents\desktop.ini
- attrib -r +a +s +h %Drive_Letter%%HP%\Documents\desktop.ini>nul 2>nul
- attrib -r +a +s -h %Drive_Letter%%HP%\Documents /s /d>nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /f /v "Personal" /t REG_SZ /d "%Drive_Letter%%HP%\Documents">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "Personal" /t REG_EXPAND_SZ /d "%Drive_Letter%%HP%\Documents">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "{F42EE2D3-909F-4907-8871-4C22FC0BF756}" /t REG_EXPAND_SZ /d "%Drive_Letter%%HP%\Documents">nul 2>nul
- if %DelFile% EQU Y rd /s /q %Current_Personal%>nul 2>nul
- echo 正在处理『桌面』...
- md %Drive_Letter%%HP%\Desktop>nul 2>nul
- if %CopyFile% EQU Y xcopy %Current_Desktop%\*.* %Drive_Letter%%HP%\Desktop\ /s /y>nul 2>nul
- attrib -r -a -s -h %Drive_Letter%%HP%\Desktop\desktop.ini>nul 2>nul
- echo.>%Drive_Letter%%HP%\Desktop\desktop.ini
- echo [.ShellClassInfo]>>%Drive_Letter%%HP%\Desktop\desktop.ini
- echo LocalizedResourceName=@%%SystemRoot%%\system32\shell32.dll,-21769>>%Drive_Letter%%HP%\Desktop\desktop.ini
- echo IconResource=%%SystemRoot%%\system32\imageres.dll,-183>>%Drive_Letter%%HP%\Desktop\desktop.ini
- attrib -r -a +s +h %Drive_Letter%%HP%\Desktop\desktop.ini>nul 2>nul
- attrib -r +a +s -h %Drive_Letter%%HP%\Desktop /s /d>nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /f /v "Desktop" /t REG_SZ /d "%Drive_Letter%%HP%\Desktop">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "Desktop" /t REG_EXPAND_SZ /d "%Drive_Letter%%HP%\Desktop">nul 2>nul
- if %DelFile% EQU Y rd /s /q %Current_Desktop%>nul 2>nul
- echo 正在处理『下载』...
- md %Drive_Letter%%HP%\Documents\Downloads>nul 2>nul
- if %CopyFile% EQU Y xcopy %Current_Downloads%\*.* %Drive_Letter%%HP%\Documents\Downloads\ /s /y>nul 2>nul
- attrib -r -a -s -h %Drive_Letter%%HP%\Documents\Downloads\desktop.ini>nul 2>nul
- echo.>%Drive_Letter%%HP%\Documents\Downloads\desktop.ini
- echo [.ShellClassInfo]>>%Drive_Letter%%HP%\Documents\Downloads\desktop.ini
- echo LocalizedResourceName=@%%SystemRoot%%\system32\shell32.dll,-21798>>%Drive_Letter%%HP%\Documents\Downloads\desktop.ini
- echo IconResource=%%SystemRoot%%\system32\imageres.dll,-184>>%Drive_Letter%%HP%\Documents\Downloads\desktop.ini
- attrib -r +a +s +h %Drive_Letter%%HP%\Documents\Downloads\desktop.ini>nul 2>nul
- attrib -r +a +s -h %Drive_Letter%%HP%\Documents\Downloads /s /d>nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /f /v "{374DE290-123F-4565-9164-39C4925E467B}" /t REG_SZ /d "%Drive_Letter%%HP%\Documents\Downloads">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "{374DE290-123F-4565-9164-39C4925E467B}" /t REG_EXPAND_SZ /d "%Drive_Letter%%HP%\Documents\Downloads">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "{7D83EE9B-2244-4E70-B1F5-5393042AF1E4}" /t REG_EXPAND_SZ /d "%Drive_Letter%%HP%\Documents\Downloads">nul 2>nul
- if %DelFile% EQU Y rd /s /q %Current_Downloads%>nul 2>nul
- echo 正在处理『收藏夹』...
- md %Drive_Letter%%HP%\Favorites>nul 2>nul
- if %CopyFile% EQU Y xcopy %Current_Favorites%\*.* %Drive_Letter%%HP%\Favorites\ /s /y>nul 2>nul
- attrib -r -a -s -h %Drive_Letter%%HP%\Favorites\desktop.ini>nul 2>nul
- echo.>%Drive_Letter%%HP%\Favorites\desktop.ini
- echo [.ShellClassInfo]>>%Drive_Letter%%HP%\Favorites\desktop.ini
- echo LocalizedResourceName=@%%SystemRoot%%\system32\shell32.dll,-21796>>%Drive_Letter%%HP%\Favorites\desktop.ini
- echo IconResource=%%SystemRoot%%\system32\imageres.dll,-115>>%Drive_Letter%%HP%\Favorites\desktop.ini
- echo IconFile=%%SystemRoot%%\system32\shell32.dll>>%Drive_Letter%%HP%\Favorites\desktop.ini
- echo IconIndex=-173>>%Drive_Letter%%HP%\Favorites\desktop.ini
- attrib -r +a +s +h %Drive_Letter%%HP%\Favorites\desktop.ini>nul 2>nul
- attrib -r +a +s -h %Drive_Letter%%HP%\Favorites /s /d>nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /f /v "Favorites" /t REG_SZ /d "%Drive_Letter%%HP%\Favorites">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "Favorites" /t REG_EXPAND_SZ /d "%Drive_Letter%%HP%\Favorites">nul 2>nul
- if %DelFile% EQU Y rd /s /q %Current_Favorites%>nul 2>nul
- echo 正在处理『我的图片』...
- md %Drive_Letter%%HP%\Documents\Pictures>nul 2>nul
- if %CopyFile% EQU Y xcopy %Current_My_Pictures%\*.* %Drive_Letter%%HP%\Documents\Pictures\ /s /y>nul 2>nul
- attrib -r -a -s -h %Drive_Letter%%HP%\Documents\Pictures\desktop.ini>nul 2>nul
- echo.>%Drive_Letter%%HP%\Pictures\desktop.ini
- echo [.ShellClassInfo]>>%Drive_Letter%%HP%\Documents\Pictures\desktop.ini
- echo LocalizedResourceName=@%%SystemRoot%%\system32\shell32.dll,-21779>>%Drive_Letter%%HP%\Documents\Pictures\desktop.ini
- echo InfoTip=@%%SystemRoot%%\system32\shell32.dll,-12688>>%Drive_Letter%%HP%\Documents\Pictures\desktop.ini
- echo IconResource=%%SystemRoot%%\system32\imageres.dll,-113>>%Drive_Letter%%HP%\Documents\Pictures\desktop.ini
- echo IconFile=%%SystemRoot%%\system32\shell32.dll>>%Drive_Letter%%HP%\Documents\Pictures\desktop.ini
- echo IconIndex=-236>>%Drive_Letter%%HP%\Documents\Pictures\desktop.ini
- attrib -r +a +s +h %Drive_Letter%%HP%\Documents\Pictures\desktop.ini>nul 2>nul
- attrib -r +a +s -h %Drive_Letter%%HP%\Documents\Pictures /s /d>nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /f /v "My Pictures" /t REG_SZ /d "%Drive_Letter%%HP%\Documents\Pictures">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "My Pictures" /t REG_EXPAND_SZ /d "%Drive_Letter%%HP%\Documents\Pictures">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "{0DDD015D-B06C-45D5-8C4C-F59713854639}" /t REG_EXPAND_SZ /d "%Drive_Letter%%HP%\Documents\Pictures">nul 2>nul
- if %DelFile% EQU Y rd /s /q %Current_My_Pictures%>nul 2>nul
- echo 正在处理『我的视频』...
- md %Drive_Letter%%HP%\Documents\Videos>nul 2>nul
- if %CopyFile% EQU Y xcopy %Current_My_Video%\*.* %Drive_Letter%%HP%\Documents\Videos\ /s /y>nul 2>nul
- attrib -r -a -s -h %Drive_Letter%%HP%\Documents\Videos\desktop.ini>nul 2>nul
- echo.>%Drive_Letter%%HP%\Documents\Videos\desktop.ini
- echo [.ShellClassInfo]>>%Drive_Letter%%HP%\Documents\Videos\desktop.ini
- echo LocalizedResourceName=@%%SystemRoot%%\system32\shell32.dll,-21791>>%Drive_Letter%%HP%\Documents\Videos\desktop.ini
- echo InfoTip=@%%SystemRoot%%\system32\shell32.dll,-12690>>%Drive_Letter%%HP%\Documents\Videos\desktop.ini
- echo IconResource=%%SystemRoot%%\system32\imageres.dll,-189>>%Drive_Letter%%HP%\Documents\Videos\desktop.ini
- echo IconFile=%%SystemRoot%%\system32\shell32.dll>>%Drive_Letter%%HP%\Documents\Videos\desktop.ini
- echo IconIndex=-238>>%Drive_Letter%%HP%\Documents\Videos\desktop.ini
- attrib -r +a +s +h %Drive_Letter%%HP%\Documents\Videos\desktop.ini>nul 2>nul
- attrib -r +a +s -h %Drive_Letter%%HP%\Documents\Videos /s /d>nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /f /v "My Video" /t REG_SZ /d "%Drive_Letter%%HP%\Documents\Videos">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "My Video" /t REG_EXPAND_SZ /d "%Drive_Letter%%HP%\Documents\Videos">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "{35286A68-3C57-41A1-BBB1-0EAE73D76C95}" /t REG_EXPAND_SZ /d "%Drive_Letter%%HP%\Documents\Videos">nul 2>nul
- if %DelFile% EQU Y rd /s /q %Current_My_Video%>nul 2>nul
- echo 正在处理『我的音乐』...
- md %Drive_Letter%%HP%\Documents\Music>nul 2>nul
- if %CopyFile% EQU Y xcopy %Current_My_Music%\*.* %Drive_Letter%%HP%\Documents\Music\ /s /y>nul 2>nul
- attrib -r -a -s -h %Drive_Letter%%HP%\Documents\Music\desktop.ini>nul 2>nul
- echo.>%Drive_Letter%%HP%\Documents\Music\desktop.ini
- echo [.ShellClassInfo]>>%Drive_Letter%%HP%\Documents\Music\desktop.ini
- echo LocalizedResourceName=@%%SystemRoot%%\system32\shell32.dll,-21790>>%Drive_Letter%%HP%\Documents\Music\desktop.ini
- echo InfoTip=@%%SystemRoot%%\system32\shell32.dll,-12689>>%Drive_Letter%%HP%\Documents\Music\desktop.ini
- echo IconResource=%%SystemRoot%%\system32\imageres.dll,-108>>%Drive_Letter%%HP%\Documents\Music\desktop.ini
- echo IconFile=%%SystemRoot%%\system32\shell32.dll>>%Drive_Letter%%HP%\Documents\Music\desktop.ini
- echo IconIndex=-237>>%Drive_Letter%%HP%\Documents\Music\desktop.ini
- attrib -r +a +s +h %Drive_Letter%%HP%\Documents\Music\desktop.ini>nul 2>nul
- attrib -r +a +s -h %Drive_Letter%%HP%\Documents\Music /s /d>nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /f /v "My Music" /t REG_SZ /d "%Drive_Letter%%HP%\Documents\Music">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "My Music" /t REG_EXPAND_SZ /d "%Drive_Letter%%HP%\Documents\Music">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "{A0C69A99-21C8-4671-8703-7934162FCF1D}" /t REG_EXPAND_SZ /d "%Drive_Letter%%HP%\Documents\Music">nul 2>nul
- if %DelFile% EQU Y rd /s /q %Current_My_Music%>nul 2>nul
- echo 正在处理『保存的游戏』...
- md %Drive_Letter%%HP%"Saved Games">nul 2>nul
- if %CopyFile% EQU Y xcopy "%Current_Saved_Games%\*.*" %Drive_Letter%%HP%"Saved Games"\ /s /y>nul 2>nul
- attrib -r -a -s -h %Drive_Letter%%HP%"Saved Games"\desktop.ini>nul 2>nul
- echo.>%Drive_Letter%%HP%"Saved Games"\desktop.ini
- echo [.ShellClassInfo]>>%Drive_Letter%%HP%"Saved Games"\desktop.ini
- echo LocalizedResourceName=@%%SystemRoot%%\system32\shell32.dll,-21814>>%Drive_Letter%%HP%"Saved Games"\desktop.ini
- echo IconResource=%%SystemRoot%%\system32\imageres.dll,-186>>%Drive_Letter%%HP%"Saved Games"\desktop.ini
- attrib -r +a +s +h %Drive_Letter%%HP%"Saved Games"\desktop.ini>nul 2>nul
- attrib -r +a +s -h %Drive_Letter%%HP%"Saved Games" /s /d>nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /f /v "{4C5C32FF-BB9D-43B0-B5B4-2D72E54EAAA4}" /t REG_SZ /d "%Drive_Letter%%HP%\Saved Games">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "{4C5C32FF-BB9D-43B0-B5B4-2D72E54EAAA4}" /t REG_EXPAND_SZ /d "%Drive_Letter%%HP%\Saved Games">nul 2>nul
- if %DelFile% EQU Y rd /s /q "%Current_Saved_Games%">nul 2>nul
- echo 正在处理『联系人』...
- md %Drive_Letter%%HP%\Contacts>nul 2>nul
- if %CopyFile% EQU Y xcopy %Current_Contacts%\*.* %Drive_Letter%%HP%\Contacts\ /s /y>nul 2>nul
- attrib -r -a -s -h %Drive_Letter%%HP%\Contacts\desktop.ini>nul 2>nul
- echo.>%Drive_Letter%%HP%\Contacts\desktop.ini
- echo [.ShellClassInfo]>>%Drive_Letter%%HP%\Contacts\desktop.ini
- echo LocalizedResourceName=@%%CommonProgramFiles%%\system\wab32res.dll,-10100>>%Drive_Letter%%HP%\Contacts\desktop.ini
- echo InfoTip=@%%CommonProgramFiles%%\system\wab32res.dll,-10200>>%Drive_Letter%%HP%\Contacts\desktop.ini
- echo IconResource=%%SystemRoot%%\system32\imageres.dll,-181>>%Drive_Letter%%HP%\Contacts\desktop.ini
- attrib -r +a +s +h %Drive_Letter%%HP%\Contacts\desktop.ini>nul 2>nul
- attrib -r +a +s -h %Drive_Letter%%HP%\Contacts /s /d>nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /f /v "{56784854-C6CB-462B-8169-88E350ACB882}" /t REG_SZ /d "%Drive_Letter%%HP%\Contacts">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "{56784854-C6CB-462B-8169-88E350ACB882}" /t REG_EXPAND_SZ /d "%Drive_Letter%%HP%\Contacts">nul 2>nul
- if %DelFile% EQU Y rd /s /q %Current_Contacts%>nul 2>nul
- echo 正在处理『链接』...
- md %Drive_Letter%%HP%\Links>nul 2>nul
- if %CopyFile% EQU Y xcopy %Current_Links%\*.* %Drive_Letter%%HP%\Links\ /s /y>nul 2>nul
- attrib -r -a -s -h %Drive_Letter%%HP%\Links\desktop.ini>nul 2>nul
- echo.>%Drive_Letter%%HP%\Links\desktop.ini
- echo [.ShellClassInfo]>>%Drive_Letter%%HP%\Links\desktop.ini
- echo LocalizedResourceName=@%%SystemRoot%%\system32\shell32.dll,-21810>>%Drive_Letter%%HP%\Links\desktop.ini
- echo IconResource=%%SystemRoot%%\system32\imageres.dll,-185>>%Drive_Letter%%HP%\Links\desktop.ini
- echo DefaultDropEffect=^4>>%Drive_Letter%%HP%\Links\desktop.ini
- echo [LocalizedFileNames]>>%Drive_Letter%%HP%\Links\desktop.ini
- echo RecentPlaces.lnk=@shell32.dll,-37217>>%Drive_Letter%%HP%\Links\desktop.ini
- echo Desktop.lnk=@shell32.dll,-21769>>%Drive_Letter%%HP%\Links\desktop.ini
- echo Downloads.lnk=@shell32.dll,-21798>>%Drive_Letter%%HP%\Links\desktop.ini
- attrib -r +a +s +h %Drive_Letter%%HP%\Links\desktop.ini>nul 2>nul
- attrib -r +a +s -h %Drive_Letter%%HP%\Links /s /d>nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /f /v "{BFB9D5E0-C6A9-404C-B2B2-AE6DB6AF4968}" /t REG_SZ /d "%Drive_Letter%%HP%\Links">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "{BFB9D5E0-C6A9-404C-B2B2-AE6DB6AF4968}" /t REG_EXPAND_SZ /d "%Drive_Letter%%HP%\Links">nul 2>nul
- if %DelFile% EQU Y rd /s /q %Current_Links%>nul 2>nul
- echo 正在处理『搜索』...
- md %Drive_Letter%%HP%\Searches>nul 2>nul
- if %CopyFile% EQU Y xcopy %Current_Searches%\*.* %Drive_Letter%%HP%\Searches\ /s /y>nul 2>nul
- attrib -r -a -s -h %Drive_Letter%%HP%\Searches\desktop.ini>nul 2>nul
- echo.>%Drive_Letter%%HP%\Searches\desktop.ini
- echo [.ShellClassInfo]>>%Drive_Letter%%HP%\Searches\desktop.ini
- echo LocalizedResourceName=@%%SystemRoot%%\system32\shell32.dll,-9031>>%Drive_Letter%%HP%\Searches\desktop.ini
- echo IconResource=%%SystemRoot%%\system32\imageres.dll,-18>>%Drive_Letter%%HP%\Searches\desktop.ini
- echo [LocalizedFileNames]>>%Drive_Letter%%HP%\Searches\desktop.ini
- echo Indexed Locations.search-ms=@searchfolder.dll,-32820>>%Drive_Letter%%HP%\Searches\desktop.ini
- echo Everywhere.search-ms=@searchfolder.dll,-32822>>%Drive_Letter%%HP%\Searches\desktop.ini
- attrib -r +a +s +h %Drive_Letter%%HP%\Searches\desktop.ini>nul 2>nul
- attrib -r +a +s -h %Drive_Letter%%HP%\Searches /s /d>nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /f /v "{7D1D3A04-DEBB-4115-95CF-2F29DA2920DA}" /t REG_SZ /d "%Drive_Letter%%HP%\Searches">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "{7D1D3A04-DEBB-4115-95CF-2F29DA2920DA}" /t REG_EXPAND_SZ /d "%Drive_Letter%%HP%\Searches">nul 2>nul
- if %DelFile% EQU Y rd /s /q %Current_Searches%>nul 2>nul
- rem 正在处理『MediaPlayer』...
- reg add "HKCU\Software\Microsoft\MediaPlayer\Preferences" /f /v "TrackFoldersDirectories0" /t REG_SZ /d "%Drive_Letter%\Users\%USERNAME%\Music">nul 2>nul
- reg add "HKCU\Software\Microsoft\MediaPlayer\Preferences" /f /v "TrackFoldersDirectories1" /t REG_SZ /d "%Drive_Letter%\Users\%USERNAME%\Pictures">nul 2>nul
- reg add "HKCU\Software\Microsoft\MediaPlayer\Preferences" /f /v "TrackFoldersDirectories2" /t REG_SZ /d "%Drive_Letter%\Users\%USERNAME%\Videos">nul 2>nul
- reg add "HKCU\Software\Microsoft\MediaPlayer\Preferences\HME\LastSharedFolders" /f /v "Folders0" /t REG_SZ /d "%Drive_Letter%\Users\%USERNAME%\Music">nul 2>nul
- reg add "HKCU\Software\Microsoft\MediaPlayer\Preferences\HME\LastSharedFolders" /f /v "Folders1" /t REG_SZ /d "%Drive_Letter%\Users\%USERNAME%\Pictures">nul 2>nul
- reg add "HKCU\Software\Microsoft\MediaPlayer\Preferences\HME\LastSharedFolders" /f /v "Folders2" /t REG_SZ /d "%Drive_Letter%\Users\%USERNAME%\Videos">nul 2>nul
- rem 正在处理『图标缓存』...
- attrib -r -a -s -h "%USERPROFILE%\Local Settings\Application Data\IconCache.db">nul 2>nul
- del /f /q "%USERPROFILE%\Local Settings\Application Data\IconCache.db">nul 2>nul
- taskkill /f /im explorer.exe
- start explorer.exe
- goto end
- :default
- echo ================================= 还原默认值 ==================================
- echo 目标驱动器:%USERPROFILE%
- echo 复制文件夹:%CopyFile%
- echo 删除源文件:%DelFile%
- echo ===============================================================================
- echo.&&pause&&echo.
- set Drive_Letter=%HOMEDRIVE%
- echo 正在处理『我的文档』...
- md %Drive_Letter%\Users\%USERNAME%\Documents>nul 2>nul
- if %CopyFile% EQU Y xcopy %Current_Personal%\*.* %Drive_Letter%\Users\%USERNAME%\Documents\ /s /y>nul 2>nul
- attrib -r -a -s -h %Drive_Letter%\Users\%USERNAME%\Documents\desktop.ini>nul 2>nul
- echo.>%Drive_Letter%\Users\%USERNAME%\Documents\desktop.ini
- echo [.ShellClassInfo]>>%Drive_Letter%\Users\%USERNAME%\Documents\desktop.ini
- echo LocalizedResourceName=@%%SystemRoot%%\system32\shell32.dll,-21770>>%Drive_Letter%\Users\%USERNAME%\Documents\desktop.ini
- echo IconResource=%%SystemRoot%%\system32\imageres.dll,-112>>%Drive_Letter%\Users\%USERNAME%\Documents\desktop.ini
- echo IconFile=%%SystemRoot%%\system32\shell32.dll>>%Drive_Letter%\Users\%USERNAME%\Documents\desktop.ini
- echo IconIndex=-235>>%Drive_Letter%\Users\%USERNAME%\Documents\desktop.ini
- attrib -r +a +s +h %Drive_Letter%\Users\%USERNAME%\Documents\desktop.ini>nul 2>nul
- attrib -r +a +s -h %Drive_Letter%\Users\%USERNAME%\Documents /s /d>nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /f /v "Personal" /t REG_SZ /d "%Drive_Letter%\Users\%USERNAME%\Documents">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "Personal" /t REG_EXPAND_SZ /d "%%USERPROFILE%%\Documents">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "{F42EE2D3-909F-4907-8871-4C22FC0BF756}" /t REG_EXPAND_SZ /d "%Drive_Letter%\Users\%USERNAME%\Documents">nul 2>nul
- if %select% NEQ U if %DelFile% EQU Y rd /s /q "%Current_Personal%">nul 2>nul
- echo 正在处理『桌面』...
- md %Drive_Letter%\Users\%USERNAME%\Desktop>nul 2>nul
- if %CopyFile% EQU Y xcopy %Current_Desktop%\*.* %Drive_Letter%\Users\%USERNAME%\Desktop\ /s /y>nul 2>nul
- attrib -r -a -s -h %Drive_Letter%\Users\%USERNAME%\Desktop\desktop.ini>nul 2>nul
- echo.>%Drive_Letter%\Users\%USERNAME%\Desktop\desktop.ini
- echo [.ShellClassInfo]>>%Drive_Letter%\Users\%USERNAME%\Desktop\desktop.ini
- echo LocalizedResourceName=@%%SystemRoot%%\system32\shell32.dll,-21769>>%Drive_Letter%\Users\%USERNAME%\Desktop\desktop.ini
- echo IconResource=%%SystemRoot%%\system32\imageres.dll,-183>>%Drive_Letter%\Users\%USERNAME%\Desktop\desktop.ini
- attrib -r -a +s +h %Drive_Letter%\Users\%USERNAME%\Desktop\desktop.ini>nul 2>nul
- attrib -r +a +s -h %Drive_Letter%\Users\%USERNAME%\Desktop /s /d>nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /f /v "Desktop" /t REG_SZ /d "%Drive_Letter%\Users\%USERNAME%\Desktop">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "Desktop" /t REG_EXPAND_SZ /d "%%USERPROFILE%%\Desktop">nul 2>nul
- if %select% NEQ U if %DelFile% EQU Y rd /s /q "%Current_Desktop%">nul 2>nul
- echo 正在处理『下载』...
- md %Drive_Letter%\Users\%USERNAME%\Downloads>nul 2>nul
- if %CopyFile% EQU Y xcopy %Current_Downloads%\*.* %Drive_Letter%\Users\%USERNAME%\Downloads\ /s /y>nul 2>nul
- attrib -r -a -s -h %Drive_Letter%\Users\%USERNAME%\Downloads\desktop.ini>nul 2>nul
- echo.>%Drive_Letter%\Users\%USERNAME%\Downloads\desktop.ini
- echo [.ShellClassInfo]>>%Drive_Letter%\Users\%USERNAME%\Downloads\desktop.ini
- echo LocalizedResourceName=@%%SystemRoot%%\system32\shell32.dll,-21798>>%Drive_Letter%\Users\%USERNAME%\Downloads\desktop.ini
- echo IconResource=%%SystemRoot%%\system32\imageres.dll,-184>>%Drive_Letter%\Users\%USERNAME%\Downloads\desktop.ini
- attrib -r +a +s +h %Drive_Letter%\Users\%USERNAME%\Downloads\desktop.ini>nul 2>nul
- attrib -r +a +s -h %Drive_Letter%\Users\%USERNAME%\Downloads /s /d>nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /f /v "{374DE290-123F-4565-9164-39C4925E467B}" /t REG_SZ /d "%Drive_Letter%\Users\%USERNAME%\Downloads">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "{374DE290-123F-4565-9164-39C4925E467B}" /t REG_EXPAND_SZ /d "%%USERPROFILE%%\Downloads">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "{7D83EE9B-2244-4E70-B1F5-5393042AF1E4}" /t REG_EXPAND_SZ /d "%%USERPROFILE%%\Downloads">nul 2>nul
- if %select% NEQ U if %DelFile% EQU Y rd /s /q "%Current_Downloads%">nul 2>nul
- echo 正在处理『收藏夹』...
- md %Drive_Letter%\Users\%USERNAME%\Favorites>nul 2>nul
- if %CopyFile% EQU Y xcopy %Current_Favorites%\*.* %Drive_Letter%\Users\%USERNAME%\Favorites\ /s /y>nul 2>nul
- attrib -r -a -s -h %Drive_Letter%\Users\%USERNAME%\Favorites\desktop.ini>nul 2>nul
- echo.>%Drive_Letter%\Users\%USERNAME%\Favorites\desktop.ini
- echo [.ShellClassInfo]>>%Drive_Letter%\Users\%USERNAME%\Favorites\desktop.ini
- echo LocalizedResourceName=@%%SystemRoot%%\system32\shell32.dll,-21796>>%Drive_Letter%\Users\%USERNAME%\Favorites\desktop.ini
- echo IconResource=%%SystemRoot%%\system32\imageres.dll,-115>>%Drive_Letter%\Users\%USERNAME%\Favorites\desktop.ini
- echo IconFile=%%SystemRoot%%\system32\shell32.dll>>%Drive_Letter%\Users\%USERNAME%\Favorites\desktop.ini
- echo IconIndex=-173>>%Drive_Letter%\Users\%USERNAME%\Favorites\desktop.ini
- attrib -r +a +s +h %Drive_Letter%\Users\%USERNAME%\Favorites\desktop.ini>nul 2>nul
- attrib -r +a +s -h %Drive_Letter%\Users\%USERNAME%\Favorites /s /d>nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /f /v "Favorites" /t REG_SZ /d "%Drive_Letter%\Users\%USERNAME%\Favorites">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "Favorites" /t REG_EXPAND_SZ /d "%%USERPROFILE%%\Favorites">nul 2>nul
- if %select% NEQ U if %DelFile% EQU Y rd /s /q "%Current_Favorites%">nul 2>nul
- echo 正在处理『我的图片』...
- md %Drive_Letter%\Users\%USERNAME%\Pictures>nul 2>nul
- if %CopyFile% EQU Y xcopy %Current_My_Pictures%\*.* %Drive_Letter%\Users\%USERNAME%\Pictures\ /s /y>nul 2>nul
- attrib -r -a -s -h %Drive_Letter%\Users\%USERNAME%\Pictures\desktop.ini>nul 2>nul
- echo.>%Drive_Letter%\Users\%USERNAME%\Pictures\desktop.ini
- echo [.ShellClassInfo]>>%Drive_Letter%\Users\%USERNAME%\Pictures\desktop.ini
- echo LocalizedResourceName=@%%SystemRoot%%\system32\shell32.dll,-21779>>%Drive_Letter%\Users\%USERNAME%\Pictures\desktop.ini
- echo InfoTip=@%%SystemRoot%%\system32\shell32.dll,-12688>>%Drive_Letter%\Users\%USERNAME%\Pictures\desktop.ini
- echo IconResource=%%SystemRoot%%\system32\imageres.dll,-113>>%Drive_Letter%\Users\%USERNAME%\Pictures\desktop.ini
- echo IconFile=%%SystemRoot%%\system32\shell32.dll>>%Drive_Letter%\Users\%USERNAME%\Pictures\desktop.ini
- echo IconIndex=-236>>%Drive_Letter%\Users\%USERNAME%\Pictures\desktop.ini
- attrib -r +a +s +h %Drive_Letter%\Users\%USERNAME%\Pictures\desktop.ini>nul 2>nul
- attrib -r +a +s -h %Drive_Letter%\Users\%USERNAME%\Pictures /s /d>nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /f /v "My Pictures" /t REG_SZ /d "%Drive_Letter%\Users\%USERNAME%\Pictures">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "My Pictures" /t REG_EXPAND_SZ /d "%%USERPROFILE%%\Pictures">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "{0DDD015D-B06C-45D5-8C4C-F59713854639}" /t REG_EXPAND_SZ /d "%%USERPROFILE%%\Pictures">nul 2>nul
- if %select% NEQ U if %DelFile% EQU Y rd /s /q "%Current_My_Pictures%">nul 2>nul
- echo 正在处理『我的视频』...
- md %Drive_Letter%\Users\%USERNAME%\Videos>nul 2>nul
- if %CopyFile% EQU Y xcopy %Current_My_Video%\*.* %Drive_Letter%\Users\%USERNAME%\Videos\ /s /y>nul 2>nul
- attrib -r -a -s -h %Drive_Letter%\Users\%USERNAME%\Videos\desktop.ini>nul 2>nul
- echo.>%Drive_Letter%\Users\%USERNAME%\Videos\desktop.ini
- echo [.ShellClassInfo]>>%Drive_Letter%\Users\%USERNAME%\Videos\desktop.ini
- echo LocalizedResourceName=@%%SystemRoot%%\system32\shell32.dll,-21791>>%Drive_Letter%\Users\%USERNAME%\Videos\desktop.ini
- echo InfoTip=@%%SystemRoot%%\system32\shell32.dll,-12690>>%Drive_Letter%\Users\%USERNAME%\Videos\desktop.ini
- echo IconResource=%%SystemRoot%%\system32\imageres.dll,-189>>%Drive_Letter%\Users\%USERNAME%\Videos\desktop.ini
- echo IconFile=%%SystemRoot%%\system32\shell32.dll>>%Drive_Letter%\Users\%USERNAME%\Videos\desktop.ini
- echo IconIndex=-238>>%Drive_Letter%\Users\%USERNAME%\Videos\desktop.ini
- attrib -r +a +s +h %Drive_Letter%\Users\%USERNAME%\Videos\desktop.ini>nul 2>nul
- attrib -r +a +s -h %Drive_Letter%\Users\%USERNAME%\Videos /s /d>nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /f /v "My Video" /t REG_SZ /d "%Drive_Letter%\Users\%USERNAME%\Videos">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "My Video" /t REG_EXPAND_SZ /d "%%USERPROFILE%%\Videos">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "{35286A68-3C57-41A1-BBB1-0EAE73D76C95}" /t REG_EXPAND_SZ /d "%%USERPROFILE%%\Videos">nul 2>nul
- if %select% NEQ U if %DelFile% EQU Y rd /s /q "%Current_My_Video%">nul 2>nul
- echo 正在处理『我的音乐』...
- md %Drive_Letter%\Users\%USERNAME%\Music>nul 2>nul
- if %CopyFile% EQU Y xcopy %Current_My_Music%\*.* %Drive_Letter%\Users\%USERNAME%\Music\ /s /y>nul 2>nul
- attrib -r -a -s -h %Drive_Letter%\Users\%USERNAME%\Music\desktop.ini>nul 2>nul
- echo.>%Drive_Letter%\Users\%USERNAME%\Music\desktop.ini
- echo [.ShellClassInfo]>>%Drive_Letter%\Users\%USERNAME%\Music\desktop.ini
- echo LocalizedResourceName=@%%SystemRoot%%\system32\shell32.dll,-21790>>%Drive_Letter%\Users\%USERNAME%\Music\desktop.ini
- echo InfoTip=@%%SystemRoot%%\system32\shell32.dll,-12689>>%Drive_Letter%\Users\%USERNAME%\Music\desktop.ini
- echo IconResource=%%SystemRoot%%\system32\imageres.dll,-108>>%Drive_Letter%\Users\%USERNAME%\Music\desktop.ini
- echo IconFile=%%SystemRoot%%\system32\shell32.dll>>%Drive_Letter%\Users\%USERNAME%\Music\desktop.ini
- echo IconIndex=-237>>%Drive_Letter%\Users\%USERNAME%\Music\desktop.ini
- attrib -r +a +s +h %Drive_Letter%\Users\%USERNAME%\Music\desktop.ini>nul 2>nul
- attrib -r +a +s -h %Drive_Letter%\Users\%USERNAME%\Music /s /d>nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /f /v "My Music" /t REG_SZ /d "%Drive_Letter%\Users\%USERNAME%\Music">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "My Music" /t REG_EXPAND_SZ /d "%%USERPROFILE%%\Music">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "{A0C69A99-21C8-4671-8703-7934162FCF1D}" /t REG_EXPAND_SZ /d "%%USERPROFILE%%\Music">nul 2>nul
- if %select% NEQ U if %DelFile% EQU Y rd /s /q "%Current_My_Music%">nul 2>nul
- echo 正在处理『保存的游戏』...
- md %Drive_Letter%\Users\%USERNAME%"Saved Games">nul 2>nul
- if %CopyFile% EQU Y xcopy "%Current_Saved_Games%\*.*" %Drive_Letter%\Users\%USERNAME%"Saved Games"\ /s /y>nul 2>nul
- attrib -r -a -s -h %Drive_Letter%\Users\%USERNAME%"Saved Games"\desktop.ini>nul 2>nul
- echo.>%Drive_Letter%\Users\%USERNAME%"Saved Games"\desktop.ini
- echo [.ShellClassInfo]>>%Drive_Letter%\Users\%USERNAME%"Saved Games"\desktop.ini
- echo LocalizedResourceName=@%%SystemRoot%%\system32\shell32.dll,-21814>>%Drive_Letter%\Users\%USERNAME%"Saved Games"\desktop.ini
- echo IconResource=%%SystemRoot%%\system32\imageres.dll,-186>>%Drive_Letter%\Users\%USERNAME%"Saved Games"\desktop.ini
- attrib -r +a +s +h %Drive_Letter%\Users\%USERNAME%"Saved Games"\desktop.ini>nul 2>nul
- attrib -r +a +s -h %Drive_Letter%\Users\%USERNAME%"Saved Games" /s /d>nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /f /v "{4C5C32FF-BB9D-43B0-B5B4-2D72E54EAAA4}" /t REG_SZ /d "%Drive_Letter%\Users\%USERNAME%\Saved Games">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "{4C5C32FF-BB9D-43B0-B5B4-2D72E54EAAA4}" /t REG_EXPAND_SZ /d "%%USERPROFILE%%\Saved Games">nul 2>nul
- if %select% NEQ U if %DelFile% EQU Y rd /s /q "%Current_Saved_Games%">nul 2>nul
- echo 正在处理『联系人』...
- md %Drive_Letter%\Users\%USERNAME%\Contacts>nul 2>nul
- if %CopyFile% EQU Y xcopy %Current_Contacts%\*.* %Drive_Letter%\Users\%USERNAME%\Contacts\ /s /y>nul 2>nul
- attrib -r -a -s -h %Drive_Letter%\Users\%USERNAME%\Contacts\desktop.ini>nul 2>nul
- echo.>%Drive_Letter%\Users\%USERNAME%\Contacts\desktop.ini
- echo [.ShellClassInfo]>>%Drive_Letter%\Users\%USERNAME%\Contacts\desktop.ini
- echo LocalizedResourceName=@%%CommonProgramFiles%%\system\wab32res.dll,-10100>>%Drive_Letter%\Users\%USERNAME%\Contacts\desktop.ini
- echo InfoTip=@%%CommonProgramFiles%%\system\wab32res.dll,-10200>>%Drive_Letter%\Users\%USERNAME%\Contacts\desktop.ini
- echo IconResource=%%SystemRoot%%\system32\imageres.dll,-181>>%Drive_Letter%\Users\%USERNAME%\Contacts\desktop.ini
- attrib -r +a +s +h %Drive_Letter%\Users\%USERNAME%\Contacts\desktop.ini>nul 2>nul
- attrib -r +a +s -h %Drive_Letter%\Users\%USERNAME%\Contacts /s /d>nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /f /v "{56784854-C6CB-462B-8169-88E350ACB882}" /t REG_SZ /d "%Drive_Letter%\Users\%USERNAME%\Contacts">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "{56784854-C6CB-462B-8169-88E350ACB882}" /t REG_EXPAND_SZ /d "%%USERPROFILE%%\Contacts">nul 2>nul
- if %select% NEQ U if %DelFile% EQU Y rd /s /q %Current_Contacts%>nul 2>nul
- echo 正在处理『链接』...
- md %Drive_Letter%\Users\%USERNAME%\Links>nul 2>nul
- if %CopyFile% EQU Y xcopy %Current_Links%\*.* %Drive_Letter%\Users\%USERNAME%\Links\ /s /y>nul 2>nul
- attrib -r -a -s -h %Drive_Letter%\Users\%USERNAME%\Links\desktop.ini>nul 2>nul
- echo.>%Drive_Letter%\Users\%USERNAME%\Links\desktop.ini
- echo [.ShellClassInfo]>>%Drive_Letter%\Users\%USERNAME%\Links\desktop.ini
- echo LocalizedResourceName=@%%SystemRoot%%\system32\shell32.dll,-21810>>%Drive_Letter%\Users\%USERNAME%\Links\desktop.ini
- echo IconResource=%%SystemRoot%%\system32\imageres.dll,-185>>%Drive_Letter%\Users\%USERNAME%\Links\desktop.ini
- echo DefaultDropEffect=^4>>%Drive_Letter%\Users\%USERNAME%\Links\desktop.ini
- echo [LocalizedFileNames]>>%Drive_Letter%\Users\%USERNAME%\Links\desktop.ini
- echo RecentPlaces.lnk=@shell32.dll,-37217>>%Drive_Letter%\Users\%USERNAME%\Links\desktop.ini
- echo Desktop.lnk=@shell32.dll,-21769>>%Drive_Letter%\Users\%USERNAME%\Links\desktop.ini
- echo Downloads.lnk=@shell32.dll,-21798>>%Drive_Letter%\Users\%USERNAME%\Links\desktop.ini
- attrib -r +a +s +h %Drive_Letter%\Users\%USERNAME%\Links\desktop.ini>nul 2>nul
- attrib -r +a +s -h %Drive_Letter%\Users\%USERNAME%\Links /s /d>nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /f /v "{BFB9D5E0-C6A9-404C-B2B2-AE6DB6AF4968}" /t REG_SZ /d "%Drive_Letter%\Users\%USERNAME%\Links">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "{BFB9D5E0-C6A9-404C-B2B2-AE6DB6AF4968}" /t REG_EXPAND_SZ /d "%%USERPROFILE%%\Links">nul 2>nul
- if %select% NEQ U if %DelFile% EQU Y rd /s /q %Current_Links%>nul 2>nul
- echo 正在处理『搜索』...
- md %Drive_Letter%\Users\%USERNAME%\Searches>nul 2>nul
- if %CopyFile% EQU Y xcopy %Current_Searches%\*.* %Drive_Letter%\Users\%USERNAME%\Searches\ /s /y>nul 2>nul
- attrib -r -a -s -h %Drive_Letter%\Users\%USERNAME%\Searches\desktop.ini>nul 2>nul
- echo.>%Drive_Letter%\Users\%USERNAME%\Searches\desktop.ini
- echo [.ShellClassInfo]>>%Drive_Letter%\Users\%USERNAME%\Searches\desktop.ini
- echo LocalizedResourceName=@%%SystemRoot%%\system32\shell32.dll,-9031>>%Drive_Letter%\Users\%USERNAME%\Searches\desktop.ini
- echo IconResource=%%SystemRoot%%\system32\imageres.dll,-18>>%Drive_Letter%\Users\%USERNAME%\Searches\desktop.ini
- echo [LocalizedFileNames]>>%Drive_Letter%\Users\%USERNAME%\Searches\desktop.ini
- echo Indexed Locations.search-ms=@searchfolder.dll,-32820>>%Drive_Letter%\Users\%USERNAME%\Searches\desktop.ini
- echo Everywhere.search-ms=@searchfolder.dll,-32822>>%Drive_Letter%\Users\%USERNAME%\Searches\desktop.ini
- attrib -r +a +s +h %Drive_Letter%\Users\%USERNAME%\Searches\desktop.ini>nul 2>nul
- attrib -r +a +s -h %Drive_Letter%\Users\%USERNAME%\Searches /s /d>nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /f /v "{7D1D3A04-DEBB-4115-95CF-2F29DA2920DA}" /t REG_SZ /d "%Drive_Letter%\Users\%USERNAME%\Searches">nul 2>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "{7D1D3A04-DEBB-4115-95CF-2F29DA2920DA}" /t REG_EXPAND_SZ /d "%%USERPROFILE%%\Searches">nul 2>nul
- if %select% NEQ U if %DelFile% EQU Y rd /s /q %Current_Searches%>nul 2>nul
- rem 正在处理『MediaPlayer』...
- reg add "HKCU\Software\Microsoft\MediaPlayer\Preferences" /f /v "TrackFoldersDirectories0" /t REG_SZ /d "%Drive_Letter%\Users\%USERNAME%\Music">nul 2>nul
- reg add "HKCU\Software\Microsoft\MediaPlayer\Preferences" /f /v "TrackFoldersDirectories1" /t REG_SZ /d "%Drive_Letter%\Users\%USERNAME%\Pictures">nul 2>nul
- reg add "HKCU\Software\Microsoft\MediaPlayer\Preferences" /f /v "TrackFoldersDirectories2" /t REG_SZ /d "%Drive_Letter%\Users\%USERNAME%\Videos">nul 2>nul
- reg add "HKCU\Software\Microsoft\MediaPlayer\Preferences\HME\LastSharedFolders" /f /v "Folders0" /t REG_SZ /d "%Drive_Letter%\Users\%USERNAME%\Music">nul 2>nul
- reg add "HKCU\Software\Microsoft\MediaPlayer\Preferences\HME\LastSharedFolders" /f /v "Folders1" /t REG_SZ /d "%Drive_Letter%\Users\%USERNAME%\Pictures">nul 2>nul
- reg add "HKCU\Software\Microsoft\MediaPlayer\Preferences\HME\LastSharedFolders" /f /v "Folders2" /t REG_SZ /d "%Drive_Letter%\Users\%USERNAME%\Videos">nul 2>nul
- rem 正在处理『图标缓存』...
- attrib -r -a -s -h "%USERPROFILE%\AppData\Local\IconCache.db">nul 2>nul
- del /f /q "%USERPROFILE%\AppData\Local\IconCache.db">nul 2>nul
- taskkill /f /im explorer.exe
- start explorer.exe
- goto end
- :help
- echo 移动目标文件夹位置
- echo.
- echo %~n0 [drive:] [/U] [/Q] [/H]
- echo.
- echo drive: 目标驱动器
- echo /U 还原默认值
- echo /Q 退出向导
- echo /H 显示帮助
- echo.
- echo 命令行键入 %~n0,可以启动一个向导。
- echo.
- if "%1"=="" pause&&goto input
- :end
- set drive=
- set choice=
- set select=
- set Drive_Letter=
- set Current_Personal=
- set Current_Desktop=
- set Current_Downloads=
- set Current_Favorites=
- set Current_My_Pictures=
- set Current_My_Video=
- set Current_My_Music=
- set h=
复制代码 |
评分
-
查看全部评分
|