怎样把桌面所在的文件夹转移到其他盘,也就是说桌面属于其他盘不属于C盘

2024-10-31 11:23:28
推荐回答(4个)
回答1:

::无须任何工具,你可以使用批处理来完成以上步骤,包括我的文档,桌面转移等,以下代码你可以直接复制到记事本,然后改记事本文件后缀为bat,运行即可

@echo off& setlocal enabledelayedexpansion
mode con cols=100 lines=30 &color 9b
title 文档转移
:begin
cls
set /p pass=确认文档转移转移的盘符[如D:]
set /p file=确认文档的新名字:
if "!pass!"=="" goto begin
if "!file!"=="" goto begin
Md !pass!\!file!\temp >nul
set /a num+=1
echo ---------====完成第!num!步设立!file!文件夹====----------
xcopy C:\Docume~1\%USERNAME%\Mydocu~1\*.* !pass!\!file!\Mydocu~1\ /e /y >nul
set /a num+=1
echo ---------====完成第!num!步转移Mydocu~1文件夹====----------
xcopy C:\Docume~1\%USERNAME%\Desktop\*.* !pass!\!file!\Desktop\ /e /y >nul
set /a num+=1
echo ---------====完成第!num!步转移Desktop文件夹====----------
xcopy C:\Docume~1\%USERNAME%\桌面\*.* !pass!\!file!\Desktop\ /e /y >nul
set /a num+=1
echo ---------====完成第!num!步转移桌面文件夹====----------
xcopy C:\Docume~1\%USERNAME%\Favori~1\*.* !pass!\!file!\Favori~1\ /e /y >nul
rem ------------------------==================================---------------------
reg /add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Cache /t REG_EXPAND_SZ /d "!pass!\!file!\Temporary Internet Files" /f >nul
reg /add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Desktop /t REG_EXPAND_SZ /d "!pass!\!file!\Desktop" /f >nul
reg /add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Favorites /t REG_EXPAND_SZ /d "!pass!\!file!\Favorites" /f >nul
reg /add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v !file! /t REG_EXPAND_SZ /d "!pass!\!file!\My Documents" /f >nul
reg /add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "My Music" /t REG_EXPAND_SZ /d "!pass!\!file!\My Documents\My Music" /f >nul
reg /add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "My Pictures" /t REG_EXPAND_SZ /d "!pass!\!file!\My Documents\My Pictures" /f >nul
reg /add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Recent" /t REG_EXPAND_SZ /d "!pass!\!file!\Recent" /f >nul
set /a num+=1
echo ---------====完成第!num!步修改注册表Shell Folders====----------
reg /add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Cache /t REG_EXPAND_SZ /d "!pass!\!file!\Temporary Internet Files" /f >nul
reg /add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Desktop /t REG_EXPAND_SZ /d "!pass!\!file!\Desktop" /f >nul
reg /add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Favorites /t REG_EXPAND_SZ /d "!pass!\!file!\Favorites" /f >nul
reg /add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v !file! /t REG_EXPAND_SZ /d "!pass!\!file!\My Documents" /f >nul
reg /add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "My Music" /t REG_EXPAND_SZ /d "!pass!\!file!\My Documents\My Music" /f >nul
reg /add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "My Pictures" /t REG_EXPAND_SZ /d "!pass!\!file!\My Documents\My Pictures" /f >nul
reg /add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Recent" /t REG_EXPAND_SZ /d "!pass!\!file!\Recent" /f >nul
set /a num+=1
echo ---------====完成第!num!步修改注册表User Shell Folders====----------
reg /add "HKCU\Identities\{F4E98C86-4D9A-463F-920C-1DF555C3B434}\Software\Microsoft\Outlook Express\5.0" /v "Store Root" /t REG_EXPAND_SZ /d "!pass!\!file!\Outlook Express" /f >nul
set /a num+=1
echo ---------====完成第!num!步修改注册表Outlook Express====----------
reg /add "HKU\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Desktop /t REG_EXPAND_SZ /d "!pass!\!file!\Desktop" /f >nul
reg /add "HKU\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Cache /t REG_EXPAND_SZ /d "!pass!\!file!\My Documents" /f >nul
reg /add "HKU\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Download Directory" /t REG_EXPAND_SZ /d "!pass!\!file!\My Documents" /f >nul
reg /add HKCU\Environment /v TEMP /t REG_EXPAND_SZ /d "!pass!\!file!\Temp" /f >nul
reg /add HKCU\Environment /v TMP /t REG_EXPAND_SZ /d "!pass!\!file!\Temp" /f >nul
set /a num+=1
echo ---------====完成第!num!步修改注册表temp====----------
taskkill /f /im explorer.exe
explorer.exe
pause >nul

回答2:

手动的不会,可以借助第三方软件,去“雨林木风”官方下载一个“雨林木风系统DIY工具”只有1M多,可以实现你说的问题。

回答3:

VISTA么?VISTA的话可以在用户文件夹中右键单击“桌面”文件夹选属性并为其指定新位置
XP系统的话,运行regedit打开注册表编辑器,定位到HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
在右侧窗口里,双击Desktop项并将其改成你所需要更改到的路径就可以了

回答4:

将桌面上文件的存储位置 改到其它盘下 给系统C盘节省空间