|
|
不通位置请自行修改
- taskkill /im explorer.exe /f
- if exist d:\我的文档 (
- xcopy /s /h /k /y %userprofile%\Documents d:\我的文档
- rd %userprofile%\Documents /s /q
- mklink /d %userprofile%\Documents d:\我的文档
- ) else (
- if exist d:\Documents (
- xcopy /s /h /k /y %userprofile%\Documents d:\Documents
- rd %userprofile%\Documents /s /q
- mklink /d %userprofile%\Documents d:\Documents
- ) else (
- md d:\我的文档
- xcopy /s /h /k /y %userprofile%\Documents d:\我的文档
- rd %userprofile%\Documents /s /q
- mklink /d %userprofile%\Documents d:\我的文档
- )
- )
- if exist d:\桌面 (
- xcopy /s /h /k /y %userprofile%\desktop d:\桌面
- rd %userprofile%\desktop /s /q
- mklink /d %userprofile%\desktop d:\桌面
- ) else (
- if exist d:\desktop (
- xcopy /s /h /k /y %userprofile%\desktop d:\desktop
- rd %userprofile%\desktop /s /q
- mklink /d %userprofile%\desktop d:\desktop
- ) else (
- md d:\桌面
- xcopy /s /h /k /y %userprofile%\desktop d:\桌面
- rd %userprofile%\desktop /s /q
- mklink /d %userprofile%\desktop d:\桌面
- )
- )
- if exist d:\收藏夹 (
- xcopy /s /h /k /y %userprofile%\Favorites d:\收藏夹
- rd %userprofile%\Favorites /s /q
- mklink /d %userprofile%\Favorites d:\收藏夹
- ) else (
- if exist d:\Favorites (
- xcopy /s /h /k /y %userprofile%\Favorites d:\Favorites
- rd %userprofile%\Favorites /s /q
- mklink /d %userprofile%\Favorites d:\Favorites
- ) else (
- md d:\收藏夹
- xcopy /s /h /k /y %userprofile%\Favorites d:\收藏夹
- rd %userprofile%\Favorites /s /q
- mklink /d %userprofile%\Favorites d:\收藏夹
- )
- )
- explorer
复制代码
|
|